Hi,
I've been asked to created a program for my local video rental shop, that can store the details of the members, videos, dvds etc. On the for were the user adds a member, I am wanting some code that will generate the membership number automaticaly in a edit box. E.g. the firs member would have the membership number "0001", when I add another the membership number would be "0002". Other words the membership number goes up by one each time.

Could someone please help me.

Recommended Answers

All 4 Replies

easiest solution would be to find the count of the number of members currently listed, add 1 when new user is created, then use the format command to format the string with leading zero's

Thank you for your help

if you need some code let me know and i'll try to get something knocked up

Thank you. i mostly likely will later on.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.