We just use a vb field in company maint. I put in the starting
number in the company and whenever we create a new record we just
add one to that, create the ID and save it back to the company.
number in the company and whenever we create a new record we just
add one to that, create the ID and save it back to the company.
--- In vantage@yahoogroups.com, "Nick" <neberle@...> wrote:
>
> I wanted to start the numbering at 1000 but I suppose I could
always
> just add 1000 to the custnum value then prefix it with C or S
>
> --- In vantage@yahoogroups.com, "Jim Frice" <Jim.Frice@> wrote:
> >
> > Any thought to use the internal custnum vantage assigns and add
your
> c or s the front for the custid? You want have to go searching
through
> a bunch of records that way so there shouldn't be any performance
issues.
> >
> > Jim
> >
> > ________________________________
> >
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> Behalf Of Brian W, Spolarich
> > Sent: Thursday, February 05, 2009 10:38 AM
> > To: vantage
> > Subject: Re: [Vantage] Re: Auto Calculating Customer/Supplier ID
> >
> >
> >
> >
> > I would think this would scale badly since you¹re fetching every
> customer
> > one by one. I¹d want to do a query and sort by CustID.
> >
> > -bws
> >
> > On 2/5/09 11:23 AM, "Nick" <neberle@
> <mailto:neberle%40norcomfg.com> > wrote:
> >
> > > Thanks for the code, We reviewed it and made some changes. Now
what
> > > we have it doing is scanning the customer/vendor ID records,
and
> > > picking the next available #. It will also fill in any blank
spots in
> > > case of a record not being saved or being deleted. I'm not
sure what
> > > performance will be like as I don't have a ton of records yet.
Let me
> > > know what you think. I wanted the numbers to start at 1000 but
it
> > > could be modified. You could also strip the "C" + if you don't
use the
> > > C prefix for your CustID.
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> >
> >
> >
> -------------------------------------------------------------------
-------
> >
> > William Frick & Co's SmartMarkT RFID Named to 2008 Top Ten
Products List
> >
> >
> > [Non-text portions of this message have been removed]
> >
>