fitzgerald
Technical User
Hi,
Sorry if the question is a bit stupid, but I'm pretty new to delphi.
Right, I'm making a program which would be used in a video rental shop to help manage details of members and the videos that they are currently renting etc.
I've hit a few problems on the database side of things. The main one is that when you add a new member to the database I want a 6 digit member number to be assigned to the new member. This number has to be the last member number + 1 (e.g. 1st member has member number 000001 and therefore I'd like the next member number assigned to be 000002 then 000003 etc).
The member number is stored within a field of a database and I'm not sure how to get delphi to "add 1" to that field and thus give me a new member number without it having to manually enter the new member number.
Any help is appreciated!
Thanks!
Sorry if the question is a bit stupid, but I'm pretty new to delphi.
Right, I'm making a program which would be used in a video rental shop to help manage details of members and the videos that they are currently renting etc.
I've hit a few problems on the database side of things. The main one is that when you add a new member to the database I want a 6 digit member number to be assigned to the new member. This number has to be the last member number + 1 (e.g. 1st member has member number 000001 and therefore I'd like the next member number assigned to be 000002 then 000003 etc).
The member number is stored within a field of a database and I'm not sure how to get delphi to "add 1" to that field and thus give me a new member number without it having to manually enter the new member number.
Any help is appreciated!
Thanks!