Quote:
|
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'coordination.staffID = and unit.unitID = coordination.unitID and coordination.staffID = staff.staffID'
|
The answer is in the error...
...coordination.staffID = and...
There is no value between the "=" and the "and"... so look back in your code where this line is:
mySQL = mySQL & " where coordination.staffID = " & sID & " and "
So the value that should be between the "=" and the "and" is from sID. For some reason sID is blank. So look for where you set the value of sID:
sID = request.form("staffID") 'retrieve the StaffID
Ok, so you're getting it from a form... now you need to look back on the form that you submit and make sure "staffID" is in fact passing a value.