I am struggling with syntax for the GoToRecord command. I have a form that is linked to a Query. The recordset contains multiple records for every Invoice number (txtID). I want to move through the records one invoice number at a time. I Have tried all of the following:
DoCmd.GoToRecord acDataForm, "frmInvoice", acGoTo, txtID -1
DoCmd.GoToRecord acDataForm, "frmInvoice", acGoTo, "txtID"-1
DoCmd.GoToRecord acDataForm, "frmInvoice", acGoTo, "txtID -1"
DoCmd.GoToRecord acDataForm, "frmInvoice", acGoTo, "txtID" & -1
Am I going about this the wrong way, or am I just messing up the syntax again?
DoCmd.GoToRecord acDataForm, "frmInvoice", acGoTo, txtID -1
DoCmd.GoToRecord acDataForm, "frmInvoice", acGoTo, "txtID"-1
DoCmd.GoToRecord acDataForm, "frmInvoice", acGoTo, "txtID -1"
DoCmd.GoToRecord acDataForm, "frmInvoice", acGoTo, "txtID" & -1
Am I going about this the wrong way, or am I just messing up the syntax again?