Hi all 
I have another question.
Our user use a form to work a table.
One of the fields is the Job No field, with consists of the last two digits of the year followed by a 5 digit number. IE 08/10001
At the moment users have to input this field on every new record they create. What I would like to do is automate this entry.
so far I have the following:
I have created a Qry with the following SQL and called it qryMaxJobno:
then set the default value in the form that updates to record to the following:
This works great.... until we hit 2009. The problem I have is i need to value after the / to reset to 00001 at the beginning of the new year.
Any clues how I might go about this?
TIA!
I have another question.
Our user use a form to work a table.
One of the fields is the Job No field, with consists of the last two digits of the year followed by a 5 digit number. IE 08/10001
At the moment users have to input this field on every new record they create. What I would like to do is automate this entry.
so far I have the following:
I have created a Qry with the following SQL and called it qryMaxJobno:
Code:
SELECT Max(Val(Right([job no],5))) AS [Max] FROM [Job Register and Report Log];
Code:
=Right(Date(),2) & "/" & DLookUp("MAX","qryMaxJobno")+1
Any clues how I might go about this?
TIA!