P
Parts Manager
tblCounter: nxtCountName, nxtCountInteger
(invCount) is nxtCountName for this counter in that table
tblInvoice: invId, etc...
I would like to assign the resulting nxtCountInteger from invCount into this
field on the form called 'invId'.
I have figured out using Dlookup to retrieve the value stored in tblCounter
using the name of the counter (invCount) and then getting the integer valued
stored for that field, but I am not sure how I update the process.
What section of the form should I put code to update the 'nxtCountInteger'
field in the tblCounter table? I want to put it in the right place so that
it only gets the counter and updates the form (table) one time upon entry,
and no other time.
What is the command(s) to update it by one? I want to create the invId by
getting the next integer and save the record; but afterwards I want to tell
the master tblCounter that this counter needs to be updated by one for the
next usage.
Can anyone offer suggestions on the above?
BTW, this is my first major form I am creating.
Tim
(invCount) is nxtCountName for this counter in that table
tblInvoice: invId, etc...
I would like to assign the resulting nxtCountInteger from invCount into this
field on the form called 'invId'.
I have figured out using Dlookup to retrieve the value stored in tblCounter
using the name of the counter (invCount) and then getting the integer valued
stored for that field, but I am not sure how I update the process.
What section of the form should I put code to update the 'nxtCountInteger'
field in the tblCounter table? I want to put it in the right place so that
it only gets the counter and updates the form (table) one time upon entry,
and no other time.
What is the command(s) to update it by one? I want to create the invId by
getting the next integer and save the record; but afterwards I want to tell
the master tblCounter that this counter needs to be updated by one for the
next usage.
Can anyone offer suggestions on the above?
BTW, this is my first major form I am creating.
Tim