G
Guest
TI
I have a Client form (with a Status subform) that records client infomaiton to both Client and Status tables (one to many if it matters). When the user is finished entering the information a comand button is clicked (saving the data an opening a new form). Before the form opens I want to run an action query to update some fields. I do this by using DoCmd.OpenQuery which works, but runs the query against all the records in the database when I only need it to update the current one
Alternatively I can hand set the criteria field in the query to the exact StatusID field I need and then run the criteria but that is impractical
So how can I select the StatusID based on the current form (subform actualy) and update just that record
Michael
I have a Client form (with a Status subform) that records client infomaiton to both Client and Status tables (one to many if it matters). When the user is finished entering the information a comand button is clicked (saving the data an opening a new form). Before the form opens I want to run an action query to update some fields. I do this by using DoCmd.OpenQuery which works, but runs the query against all the records in the database when I only need it to update the current one
Alternatively I can hand set the criteria field in the query to the exact StatusID field I need and then run the criteria but that is impractical
So how can I select the StatusID based on the current form (subform actualy) and update just that record
Michael