I'm getting a syntax error (missing operator) in my sql statement below and I can't seem to figure out what is wrong.
DoCmd.OpenForm "frmEditPatientFollowUpVisit", acNormal, , "ID= '" & txtID.Value & "' ORDER BY Visit", acFormEdit, acWindowNormal
It works if I remove the 'ORDER BY Visit' but I would like this in to ensure that the records appear in the correct order.
Can anyone see what is wrong?
Thanks!