I have a table BILLING which I enter data into using a form in datasheet view. Two of the fields are BILLDATE and INVNUMBER. What I would like to do is automatically enter a new INVNUMBER (calculated as the previous maximum invoice number + 1), but not until the BILLDATE is filled in. I don't want to enter a number when the record is first added, because they are added well in advance of actual billing. I want this to be a default value, but need to be able to modify it if needed.
I can calculate the incrementing invoice number all right, but not sure how to code in (or create macro) to calculate and save it when a value is entered in BILLDATE. (I'm still just learning how to use Events to trigger actions.)
Can anyone suggest a good, preferably simple, way to go about this?
Edited to add: I am using Windows 7 now, not Vista - should have updated before posting