Below is the code I have on a Timer Event that is supposed to take me to the Last EcnNbr that I was on before
the requery. I keep getting the following error:
this same code on another Form and it works just fine. Hopefully this is just something stupid
I have done but I sure can't figure it out. PLEASE HELP!
the requery. I keep getting the following error:
I am totally stumped and hope someone can help me understand what is wrong. I haveRun-time error '3464':
Data type mismatch in criteria expression.
this same code on another Form and it works just fine. Hopefully this is just something stupid
I have done but I sure can't figure it out. PLEASE HELP!
Code:
Private Sub Form_Timer()
trCtlName = Screen.ActiveControl.Name
'Record
intID = Me.EcnNbr
Me.Requery
'Go to record
Me.Recordset.FindFirst "EcnNbr=" & intID
'Go to control
DoCmd.GoToControl strCtlName
End Sub