Please help, I am desperate on this issue. I am quite the novice at this but I hope someone out there can offer assistance. I am currently using access 2010. I am trying to use syntax recommended for the immediate window as suggested by articles. Here is the string:
- strSql = "SELECT tblPersons.PersonID, tblPersons.lastName, tblPayments.paymentAmt, tblPayments.paymentDate, tblPayments.UnitID " & _
-
"FROM tblPersons LEFT JOIN tblPayments ON tblPersons.PersonID = tblPayments.personID " & _
-
"WHERE tblPersons.PersonID " = Me!txtpersonID & _
-
" ORDER BY tblPersons.PersonID, tblPayments.paymentDate DESC;"
I am typing ?strSql in the immediate window but NOTHING is happening. I have typed command (in code) debug.print strSql and ?strSql in immediate window but nothing happens. I seem to get a response from some function such as now(), but cannot see the sequel string as suggested by all of the reading. Do I need to set some parameters in some properties window? I have the form open in design view. This is in a form module on the page with a lot of other code, if this makes a difference (none of the other code uses strSql as a string value.) I apologize for the very rudimentary nature of this question, but I do not get it!