Hi, I've been searching around a bit on the site trying to find an answer, but I believe I will need someone to hold my hand on this one.
I have a table called "WorkOrders". In this table there is a field called "WorkOrder#" which is a 4 digit number that I would like to start at 0001. I want this field on each new record to just add 1, for example, 0001, then the next record 0002, etc. I need this to be contiguous.
These records are added to the table by using a form called "WorkOrders". There is a textbox that generates, and shows the user what the "Work Order ID" is, which is the year (pulled from "Year" field in the table), then the Order #. So for example, 2007-0001, 2007-0002, etc.
I can't seem to figure out how to write the Dmax command or where exactly to put it to get this to work right, and I would also like it to start back at 0001 each year, which I am pretty clueless on getting to work as well.
Hope I explained my issues ok, let me know if you need any more info. Thanks!
I have a table called "WorkOrders". In this table there is a field called "WorkOrder#" which is a 4 digit number that I would like to start at 0001. I want this field on each new record to just add 1, for example, 0001, then the next record 0002, etc. I need this to be contiguous.
These records are added to the table by using a form called "WorkOrders". There is a textbox that generates, and shows the user what the "Work Order ID" is, which is the year (pulled from "Year" field in the table), then the Order #. So for example, 2007-0001, 2007-0002, etc.
I can't seem to figure out how to write the Dmax command or where exactly to put it to get this to work right, and I would also like it to start back at 0001 each year, which I am pretty clueless on getting to work as well.
Hope I explained my issues ok, let me know if you need any more info. Thanks!