motscotland
Registered User.
- Local time
- Today, 22:18
- Joined
- Oct 29, 2003
- Messages
- 19
Hi.
I am looking for a way to look up the latest reference code of a record, increment it by 1 and then store this new value on the main data entry form - this ref and other newly added data (entered on entry form) then to be added as a new record to the main data table.
Main table is cvlist
Reference Field is u_id-1 (format is Mnnnn )
The form where entry is to be done is cvlistfrmNEW
I have a query qrycvlistMaxRef that returns the max ref as I am looking for, but need to know how to add 1 to this value and put it where I describe above.
The reason for this is I am building an Access version of an older FoxPro db which has records dating back 14 or 15 years which are all referenced by the u_id-1 number.
I am a newbie to Access programming so apologies for any gross stupidity!!
Any help would be appreciated.
Cheers,
Myles

I am looking for a way to look up the latest reference code of a record, increment it by 1 and then store this new value on the main data entry form - this ref and other newly added data (entered on entry form) then to be added as a new record to the main data table.
Main table is cvlist
Reference Field is u_id-1 (format is Mnnnn )
The form where entry is to be done is cvlistfrmNEW
I have a query qrycvlistMaxRef that returns the max ref as I am looking for, but need to know how to add 1 to this value and put it where I describe above.
The reason for this is I am building an Access version of an older FoxPro db which has records dating back 14 or 15 years which are all referenced by the u_id-1 number.
I am a newbie to Access programming so apologies for any gross stupidity!!

Any help would be appreciated.
Cheers,
Myles

Last edited: