I am having trouble with the syntax for an update query. I am getting a compile error: Syntax error. I have looked at examples but many are very complex and hard to follow.
I have a combobox (cboFullName) with a list of interview candidates with the row source
After choosing a name and filling out the evaluation form I want clicking a cmd button to save and close the form I want to remove them from the list by running an update query and changing (tblCandidates.Interview) to -1 or 'true'
Here is my current update query. I have trouble understanding the quotes and & signs. I have Access VBA for Dummies, but does not explain the why's well.
Probably not the best naming but Me!FullName is the control source to tblEvaluations.FullName on save.
You don't know what you don't know...
I have a combobox (cboFullName) with a list of interview candidates with the row source
Code:
SELECT tblCandidates.FullName, tblCandidates.Interview FROM tblCandidates WHERE (((tblCandidates.Interview)=0)) ORDER BY tblCandidates.FullName;
After choosing a name and filling out the evaluation form I want clicking a cmd button to save and close the form I want to remove them from the list by running an update query and changing (tblCandidates.Interview) to -1 or 'true'
Here is my current update query. I have trouble understanding the quotes and & signs. I have Access VBA for Dummies, but does not explain the why's well.
Code:
CurrentDb.Execute ("UPDATE tblCandidates SET tblCandidates.Interview = -1 WHERE [tblCandidates.FullName] =' & Me!FullName'")
Probably not the best naming but Me!FullName is the control source to tblEvaluations.FullName on save.
You don't know what you don't know...