Syntax for referencing controls from the query pane

livvie

Registered User.
Local time
Today, 22:05
Joined
May 7, 2004
Messages
158
This is what I am trying to do in Access 2003 .adp
SELECT rec_batch, rec_jobid
FROM tblctmist
WHERE (rec_batch <> ' ') AND rec_jobid = [Forms] ! [frmWorksOrderComplete].[Form] ! [fsubWOrderHead] ! [txtjobid]
ORDER BY rec_batch DESC

but I get an invalid sql error
 
Why are you putting spaces between the form properties?

ie.

] ! [

it should be ]![
 
SJ McAbney said:
Why are you putting spaces between the form properties?

ie.

] ! [

it should be ]![

That happens when I try to run it Access reformats it that way.
 

Users who are viewing this thread

Back
Top Bottom