G
Guest
Hello,
I have a three digit code that represents a location of a device on a site.
I am creating a database that, using the code, holds information about each
device. When I wish to add a new device I use ADO to sort and step through
each record until I get to the next blank entry or gap in a sequence.
i.e 425, 426, 428 are already in use, so when i generate a new number it
returns 427. The number returned next time would be 429
That is all good and proper and works fine
Except:
when the device is in the 000 range.
I need to return an integer so I can increment and compare, but my function
only returns 0.
How can you return a 000 integer, or what trick could I use?
I have a three digit code that represents a location of a device on a site.
I am creating a database that, using the code, holds information about each
device. When I wish to add a new device I use ADO to sort and step through
each record until I get to the next blank entry or gap in a sequence.
i.e 425, 426, 428 are already in use, so when i generate a new number it
returns 427. The number returned next time would be 429
That is all good and proper and works fine
Except:
when the device is in the 000 range.
I need to return an integer so I can increment and compare, but my function
only returns 0.
How can you return a 000 integer, or what trick could I use?