B
Berny
Is there a way to requery and return to the next or same record?
I'm trying to save the value of the primary key field into a variable, run
the requery, and use the variable to return to the record using the find
record
But I get the following Error:
"A macro set to one of the current field's properties failed because of
an error in a FindRecord action argument"
Can anyone tell me what I doing wrong?
Private Function VolCboLstUpd()
On Error GoTo VolCboLstUpd_Err
Dim strX As String
DoCmd.GoToRecord , , acNext
strX = Me!idsVolRecID (this is the Primary key field)
DoCmd.Requery
DoCmd.FindRecord strX,,,,,acAll ( I'm sure the problem is I'm using
this incorrectly)
VolCboLstUpd_Exit:
Exit Function
VolCboLstUpd_Err:
MsgBox Error$
Resume VolCboLstUpd_Exit
End Function
Any help is greatly appreciated
I'm trying to save the value of the primary key field into a variable, run
the requery, and use the variable to return to the record using the find
record
But I get the following Error:
"A macro set to one of the current field's properties failed because of
an error in a FindRecord action argument"
Can anyone tell me what I doing wrong?
Private Function VolCboLstUpd()
On Error GoTo VolCboLstUpd_Err
Dim strX As String
DoCmd.GoToRecord , , acNext
strX = Me!idsVolRecID (this is the Primary key field)
DoCmd.Requery
DoCmd.FindRecord strX,,,,,acAll ( I'm sure the problem is I'm using
this incorrectly)
VolCboLstUpd_Exit:
Exit Function
VolCboLstUpd_Err:
MsgBox Error$
Resume VolCboLstUpd_Exit
End Function
Any help is greatly appreciated