I have a temp table that i am using to complete some tasks. I have to use it so that close my form and run an update query. Then when i open the form back up I want to go back to the record it was on when closed. I have that record id in the temp table.
in the past I have used the following
DoCmd.OpenForm FormName:="Myform", WhereCondition:="[ID]='" & Me.ID & "'"
however, the form is not open now and I need to open it based on the value in the temp table.
I have tried
DoCmd.OpenForm FormName:="Myform", WhereCondition:="[ID]='" & TempTable.ID & "'"
But that does not work