Good morning all.
I have an issue with a large(ish) database.
We use a primary key in our main table tblJobRegister called job_no which is a numeric field limited to 7 digits.
There is a pre set format of xx/xxxx we use the first two numbers as the year and the last 4 digits range from 0001 to 9999 throughout the year.
My issue is that I a running out of number very quickly and need to increase this from /xxxx to /xxxxx.
Sounds simple enough, until I realised that relationships have been created on this field.
So I assume the best way of doing this is to create a new field in the same table, ie Job_No1 which is set to 8 digits and then copy the data across.
I'm not an avid access user, but I can find my way around code (usually)!
I been advised the best way of doing this is an update qry using something like [FONT="]
But I cant figure out any more.
If anyone has any clues, or could offer some guiding advice, (or a complete solution
it would be greatly appreciated.
[/FONT]
I have an issue with a large(ish) database.
We use a primary key in our main table tblJobRegister called job_no which is a numeric field limited to 7 digits.
There is a pre set format of xx/xxxx we use the first two numbers as the year and the last 4 digits range from 0001 to 9999 throughout the year.
My issue is that I a running out of number very quickly and need to increase this from /xxxx to /xxxxx.
Sounds simple enough, until I realised that relationships have been created on this field.
So I assume the best way of doing this is to create a new field in the same table, ie Job_No1 which is set to 8 digits and then copy the data across.
I'm not an avid access user, but I can find my way around code (usually)!
I been advised the best way of doing this is an update qry using something like [FONT="]
Code:
Left([job_no],2) & "/0" & Right([Job_No1],4)
If anyone has any clues, or could offer some guiding advice, (or a complete solution
[/FONT]