Hello List,
I think I've hit a wall.
Here is the scenario:
I have two tables (1 storing the main information and the second storing some of the values from the first (via an update query). I have a form that populates the first table, a button on that form that updates records in the second table via an update query that has criteria specified on the form. The value selected in the combo box on the form is the criteria in the update query (matching work order numbers). Everything runs fine until I want to submit more than one record. There seems to be a delay in posting the second record to the main table. The record gets input, but the update query seems to be executing prior to it getting into the table; therefore the criteria is null and the update query fails to update records in the second table? I use DoCmd.RunCommand acCmdSaveRecord before executing the update query - but it doesn't seem to be working on any of the records other than the first one. If I close the form and go back in it works. It will let me process one record at a time the majority of the time, occassionally it permits two or three entries and then fails.
Any insight and suggestions would be appreciated.
I think I've hit a wall.
Here is the scenario:
I have two tables (1 storing the main information and the second storing some of the values from the first (via an update query). I have a form that populates the first table, a button on that form that updates records in the second table via an update query that has criteria specified on the form. The value selected in the combo box on the form is the criteria in the update query (matching work order numbers). Everything runs fine until I want to submit more than one record. There seems to be a delay in posting the second record to the main table. The record gets input, but the update query seems to be executing prior to it getting into the table; therefore the criteria is null and the update query fails to update records in the second table? I use DoCmd.RunCommand acCmdSaveRecord before executing the update query - but it doesn't seem to be working on any of the records other than the first one. If I close the form and go back in it works. It will let me process one record at a time the majority of the time, occassionally it permits two or three entries and then fails.
Any insight and suggestions would be appreciated.