Following your suggestion I've put the whole SQL statement as below but getting "Syntax Errors" when I compile it in VBA.
To be honest, I've been playing around with the " and & symbols following the structure as shown in the VBA help topic.
Code:
stDocName = "Orders by date form"
DoCmd.OpenForm stDocName
Forms(stDocName).RecordSource="SELECT
Leave a comment: