sam1fletcher
Registered User.
- Local time
- Today, 14:04
- Joined
- Jan 28, 2013
- Messages
- 40
Hi i keep getting runtime error 3075 missing opperator
Code:
Set rs = db.OpenRecordset("tblSchool")
With rs
.MoveFirst
While Not .EOF
SchName = rs("SchoolName").Value
sql1 = "SELECT * FROM tblBooking WHERE School Name =" & SchName
the error is on the last line and im guessing its because of the space between School and Name but that is what it is called in the table.
What is the correct way to write this line??
Sam
Code:
Set rs = db.OpenRecordset("tblSchool")
With rs
.MoveFirst
While Not .EOF
SchName = rs("SchoolName").Value
sql1 = "SELECT * FROM tblBooking WHERE School Name =" & SchName
the error is on the last line and im guessing its because of the space between School and Name but that is what it is called in the table.
What is the correct way to write this line??
Sam