|
-
Apr 27th, 2005, 02:34 PM
#2
Re: Need some help
My first thought was autonumber, but obviously that won't do.
It seems to me that for this to work you will need to track the highest used number for each city. That being the case, the obvious way to do so would be to add a table to the database (depending on your design, this may be as simple as adding a field, if the cities are in a table already) that keeps the max number for each city.
I would want to encapsulate the number recovery in a function or two. Perhaps a SaveMaxNumber(cityName as string) and GetMaxNumber(cityName as string) as integer
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|