How can I assign the following SQL statement to a string value so that when I assign ADODB.RecordSource to this string value it will work:
SELECT R.Year, R.Semester, R.Period, R.Course, R.Teacher FROM tblResults AS R WHERE R.Year Like "*" & "2001" & "*" AND R.Course Like "*" & "csc" & "*";
When I try to run this, it accepts the SQL statement but then returns no records. I cut and pasted this into access and it works just fine. This is due Next Thursday so I hope to have this done fairly soon so I can finish all my other exam stuff. Thanks for the help!
SELECT R.Year, R.Semester, R.Period, R.Course, R.Teacher FROM tblResults AS R WHERE R.Year Like "*" & "2001" & "*" AND R.Course Like "*" & "csc" & "*";
When I try to run this, it accepts the SQL statement but then returns no records. I cut and pasted this into access and it works just fine. This is due Next Thursday so I hope to have this done fairly soon so I can finish all my other exam stuff. Thanks for the help!