Hi all,
I have created a sub-form called "frmAssignmentDetails," which I use in the main form "frmAssignment," where I can add new cars based on the table "dbo_tblCar." I use some FAYT VBA code from MajP to find the car in a combo box. In case the car is not found, the user can double-click on the text box above the combo box to launch the form "frmAddcar" to add a new car to the database in the table "dbo_tblCar." If the user adds a new car, but the car is already in the database, no new car is created; instead, the related CarID is placed in the record source of frmAssignmentDetails. Additionally, each time the record is changed in frmAssignmentDetails, the StartDateTime value of frmAssignmentDetails is updated to Now().
I have two remaining issues that I’m struggling to resolve:
1.) If the user decides to insert a new record but starts with the double-click event, immediately adding a new car and finishing the records, it is no longer possible to add a new record afterward.
2.) When performing process (1), the StartDateTime is not inserted into dbo_tblAssignmentDetails.
I have attached my database. Does anyone have any advice or tips? Thank you !
I have created a sub-form called "frmAssignmentDetails," which I use in the main form "frmAssignment," where I can add new cars based on the table "dbo_tblCar." I use some FAYT VBA code from MajP to find the car in a combo box. In case the car is not found, the user can double-click on the text box above the combo box to launch the form "frmAddcar" to add a new car to the database in the table "dbo_tblCar." If the user adds a new car, but the car is already in the database, no new car is created; instead, the related CarID is placed in the record source of frmAssignmentDetails. Additionally, each time the record is changed in frmAssignmentDetails, the StartDateTime value of frmAssignmentDetails is updated to Now().
I have two remaining issues that I’m struggling to resolve:
1.) If the user decides to insert a new record but starts with the double-click event, immediately adding a new car and finishing the records, it is no longer possible to add a new record afterward.
2.) When performing process (1), the StartDateTime is not inserted into dbo_tblAssignmentDetails.
I have attached my database. Does anyone have any advice or tips? Thank you !
Attachments
Last edited: