Dmax (1 Viewer)

adnmhz

New member
Local time
Today, 23:50
Joined
Aug 29, 2018
Messages
5
Hi, I have an access database. I have 56 customers for which i have a table and a form. I want to create auto invoice number for each customer whenever user add new invoice. I tried DMax auto increment but all in vain. Please help me immediately as I want auto increment for each customer by giving him a specific tax also for example for customer Daniel I want D-01, and in next new invoice i want D-02........... My database information is .......table name in invoicetble.......field name is "invoice" and form name is Invoice_Form.
 

Ranman256

Well-known member
Local time
Today, 15:50
Joined
Apr 9, 2015
Messages
4,339
use the field AUTONUM. It creates number automatically. No programming needed.
You can add a letter in front if you want. (as a calculation)
 

adnmhz

New member
Local time
Today, 23:50
Joined
Aug 29, 2018
Messages
5
no.........i want auto number for each customer separately......for example there is ranman then i need ranman-01, and if i have adnan then i need adnan-01...........so it doesnt cover with auto number
 

plog

Banishment Pending
Local time
Today, 14:50
Joined
May 11, 2011
Messages
11,638
First, why? What's so special about these invoices numbers? Do they need to fulfill a purpose other than being unique?

Second, check the 'Similar Threads' section at the bottom of this page. This has been asked, had their purpose questioned and ultimately answered many times on this forum.

Third, if those links don't help, explain in more detail what you are specifically attempting to accomplish this. Post code and where you put that code.
 

Users who are viewing this thread

Top Bottom