Milothicus
Registered User.
- Local time
- Today, 09:49
- Joined
- Sep 24, 2004
- Messages
- 134
My main form is used to create new records in the 'input' table. there's an autonumber primary key, and then there's an enquiry_number field (syntax: E67xx). A secondary table tracks contact with clients, and the record to edit in the contact log is selected from a combo box.
what i'd like is to have a new record created with the enquiry_number field in the contact log filled in with each new enquiry number from the input table.
So, in the beforeinsert event in the input form (bound to the input table), i have the code that creates the new enquiry number. can i open a new record in the contact log table and insert the enquiry number into that new record in the same event? what's the code to switch tables, insert a new record, copy a value into the new record and switch back to the form?
any help is appreciated
what i'd like is to have a new record created with the enquiry_number field in the contact log filled in with each new enquiry number from the input table.
So, in the beforeinsert event in the input form (bound to the input table), i have the code that creates the new enquiry number. can i open a new record in the contact log table and insert the enquiry number into that new record in the same event? what's the code to switch tables, insert a new record, copy a value into the new record and switch back to the form?
any help is appreciated