I can't believe I am stuck!
Here's the command, edited with " _", and I get an error dialog box:
"Compile Error:
Expected: end of statement"
db
RD_MACH_OPS - on the 2nd line is highlighted.
When I remove the continuation marks (put it back the way it was) it executes (I even removed the tabs that were inserted at the beginning of each line):
strSQL = "SELECT db
RD_MACH_OPS.MACH_NO as Machine, db
RD_MACH_OPS.ORDER_NO as Job, _
db
RD_MACH_OPS.SPEC_NO as Spec, db
RD_MACH_OPS.ITEM_NO as Item, db
RD_MACH_OPS.FORM_NO as Form _
FROM db
RD_MACH_OPS _
INNER JOIN MACHINES ON db
RD_MACH_OPS.MACH_NO = MACHINES.MACH_NO _
WHERE (((db
RD_MACH_OPS.ORDER_NO) = " & JNo & ") And ((db
RD_MACH_OPS.FORM_NO) = " & FNo & ") _
And db
RD_MACH_OPS.REPLACED_MACH_NO Is Null And (MACHINES.SCHEDCARDS_FLG = 'Y')) _
ORDER BY db
RD_MACH_OPS.MACH_SEQ_NO"
I'm so confused. :-(
(Do I need to remove the line leading tabs that are auto inserted for indentation?)
Here's the command, edited with " _", and I get an error dialog box:
"Compile Error:
Expected: end of statement"
db
When I remove the continuation marks (put it back the way it was) it executes (I even removed the tabs that were inserted at the beginning of each line):
strSQL = "SELECT db
db
FROM db
INNER JOIN MACHINES ON db
WHERE (((db
And db
ORDER BY db
I'm so confused. :-(
(Do I need to remove the line leading tabs that are auto inserted for indentation?)