JeffreyCarlino
New member
- Local time
- Today, 15:35
- Joined
- Aug 24, 2011
- Messages
- 2
I created a database to track projects for my company. I have a table called projects and I want to be able to create a change log so that any time any employee makes a change to the table with in the "Projectsform", it gets log into another table called "ProjectsChangeLog". Below is the code i wrote that I duplicated from Access learning zone. But the code doesn't work. please note that I created the project change log directly from the project table and the project ID to a regular number because you can't have more than one of the same auto generated ID in the table.
DoCmd.RunSQL "INSERT INTO ProjectsChangeLog SELECT * FROM ProjectsForm " & _
"WHERE ProjectID=" & ProjectID
I keep getting a runtime error 3075, syntax error (missing operator) and query expression 'ProjectID='
this is driving me crazy because the instructor wrote the same code and at work on their database. I'm not sure what the problem is. Anyone's help is much appreciated
DoCmd.RunSQL "INSERT INTO ProjectsChangeLog SELECT * FROM ProjectsForm " & _
"WHERE ProjectID=" & ProjectID
I keep getting a runtime error 3075, syntax error (missing operator) and query expression 'ProjectID='
this is driving me crazy because the instructor wrote the same code and at work on their database. I'm not sure what the problem is. Anyone's help is much appreciated
Last edited: