A family of Microsoft relational database management systems designed for ease of use.
I see several problems here.
- As Karl spotted, the .Codelist is an unqualified reference. And would probably cause the error. As Daniel said, the Debug.Print should place the generated SQL statement into the Immediate Window. Copy and paste from there into SQL View and try to view the results, it should highlight the error.
- But why are you doing it this way? Using a SQL statement to update a table indicates using an unbound form. While there are valid reasons for using an unbound form, I don't see any of those reasons reflected in your code. One of the great advantages of Access is that it handles the I/O between your forms and tables.
- Whenever you have fields with names like Note1, Note2 etc. you have a repeating group which violates Normalization rules. This may indicate other problems with your table designs.
- Accepting the default name for controls is not a good idea.
More info about what the app does and why you are doing it this way may help us help you with your app.