A
Associates
Hi,
I was trying to execute the following query in Access 03 but unable to
achieve a desired outcome.
mySQL = "SELECT ID, FirstName, LastName, Category, Subjects, EntryDate"
mySQL = mySQL & " FROM studentDB"
mySQL = mySQL & " WHERE (FirstName like '" & myFName & "' " & myLink &
"LastName like '" & myLName & "') And EntryDate between #10-Mar-2006# and
#20-Mar-2009#"
where myLink is a variable that has a value of either "OR" or "AND"
depending on a condition or criteria.
This return nothing at the moment which is wrong. I suspect myLink is the
cause. But how do i go about this. I wonder if anyone might be able to help
me out.
Any helps would be greatly appreciated.
Thank you in advance
I was trying to execute the following query in Access 03 but unable to
achieve a desired outcome.
mySQL = "SELECT ID, FirstName, LastName, Category, Subjects, EntryDate"
mySQL = mySQL & " FROM studentDB"
mySQL = mySQL & " WHERE (FirstName like '" & myFName & "' " & myLink &
"LastName like '" & myLName & "') And EntryDate between #10-Mar-2006# and
#20-Mar-2009#"
where myLink is a variable that has a value of either "OR" or "AND"
depending on a condition or criteria.
This return nothing at the moment which is wrong. I suspect myLink is the
cause. But how do i go about this. I wonder if anyone might be able to help
me out.
Any helps would be greatly appreciated.
Thank you in advance