Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > probs using lin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 30147 of 31576
Post > Topic >>

probs using line continuation characters

by MLH <CRCI@[EMAIL PROTECTED] > May 1, 2008 at 07:10 PM

I don't understand why (a) works and compiles but (b) does not...

(a)
        Set qdfTemp = .CreateQueryDef("", _
        "SELECT * FROM Employees")

(b)
        Set qdfTemp = .CreateQueryDef("", _
        "SELECT DISTINCTROW tblPmtsRcd.PmtID,
tblPmtsRcd.InvoiceNumber, tblPmtsRcd.VehicleJobID,
tblPmtsRcd.PmtRecTDStamp _
        FROM tblPmtsRcd LEFT JOIN tblinvoiceData ON
tblPmtsRcd.InvoiceNumber = tblinvoiceData.InvoiceNumber _
        WHERE tblPmtsRcd.InvoiceNumber<>0 And tblPmtsRcd.InvoiceNumber
Is Not Null AND tblinvoiceData.InvoiceNumber Is Null")
        ' Open Recordset and print re****t.
        GetrstTemp qdfTemp

Isn't (b) just a longer SQL string with continuation characters and
(a) a shorter SQL string with continuation characters?

Everytime I type the Set statement in (b) into a module, it turns
red and gives me an error. I do not recognize what is wrong.
With the damned newsreader wrapping - you may not be able
to see what I'm doing wrong either. Sorry about that. Would
like to know. If I type EVERYTHING on one line - no problem.
But when I try using line continuation characters everything
turns red.
 




 4 Posts in Topic:
probs using line continuation characters
MLH <CRCI@[EMAIL PROTE  2008-05-01 19:10:57 
Re: probs using line continuation characters
Arch <send.no@[EMAIL P  2008-05-02 03:33:25 
Re: probs using line continuation characters
MLH <CRCI@[EMAIL PROTE  2008-05-06 10:31:30 
Re: probs using line continuation characters
MLH <CRCI@[EMAIL PROTE  2008-05-06 10:35:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:36:43 CST 2008.