W
wvrider
I have a database that saves a field(MainID) in this format: 2008-0001-ABC.
The 0001 is saved in a different database table(ValueReset). Each time a new
record is created, that number in incremented one and saved back to a field
in another table. My question is how do i pull that value from the table,
increase it by one, and then save that value back to the table using vba?
I am pulling the value using this:
DLookup("[IncNumber]", "ValueReset", "[ID] = 1") and I get the value I need,
I can incriment the value, just cannot save it back to the database so that
next time, it will be one higher.
Any help or suggestions? thanks. I would prefer in code if possible. thanks
The 0001 is saved in a different database table(ValueReset). Each time a new
record is created, that number in incremented one and saved back to a field
in another table. My question is how do i pull that value from the table,
increase it by one, and then save that value back to the table using vba?
I am pulling the value using this:
DLookup("[IncNumber]", "ValueReset", "[ID] = 1") and I get the value I need,
I can incriment the value, just cannot save it back to the database so that
next time, it will be one higher.
Any help or suggestions? thanks. I would prefer in code if possible. thanks