Hi there.
I have a similar post that hasn't really been answered probably due to it being fairly long and complex. So, I've broken it down.
I'm trying to execute code from a command button on a form to add a new record to a table.
This is not working and know new record is being added. Is my syntax wrong? The me.PersonID.Value is from the ID on the form that will match the field in the new record.
Hope someone can help
I have a similar post that hasn't really been answered probably due to it being fairly long and complex. So, I've broken it down.
I'm trying to execute code from a command button on a form to add a new record to a table.
Code:
CurrentDb.Execute ("INSERT INTO dbo_ComplaintDetail (PersonID) VALUES (" & Me.PersonID.Value & ");")
This is not working and know new record is being added. Is my syntax wrong? The me.PersonID.Value is from the ID on the form that will match the field in the new record.
Hope someone can help
