J
Joanne
I have the following statement that is failing after the first WHERE
statement. If I comment out the portion of the statement after the
second line, I get a recordset, else I get bsSql=Nothing. In both
instances the variable 'sGroupName' has the correct value passed to
it.
My question is how do I incorporate 2 WHERE conditions in one sql
statement? I think I have a syntax problem here and I don't know how
to fix it.
BsSql = "SELECT tblDocumentList.DocNamePath FROM tblDocumentList" & _
" WHERE (((tblDocumentList.Bookmarks) = True))" & _
" WHERE (((tblDocumentList.GroupName) = """ & _
sGroupName = """));"
Thank you for your time and knowledge
Joanne
statement. If I comment out the portion of the statement after the
second line, I get a recordset, else I get bsSql=Nothing. In both
instances the variable 'sGroupName' has the correct value passed to
it.
My question is how do I incorporate 2 WHERE conditions in one sql
statement? I think I have a syntax problem here and I don't know how
to fix it.
BsSql = "SELECT tblDocumentList.DocNamePath FROM tblDocumentList" & _
" WHERE (((tblDocumentList.Bookmarks) = True))" & _
" WHERE (((tblDocumentList.GroupName) = """ & _
sGroupName = """));"
Thank you for your time and knowledge
Joanne