The data has been changed error

  • Thread starter gmazza via AccessMonster.com
  • Start date
G

gmazza via AccessMonster.com

Hi there,
I keep getting this error on my form.
I have an unbound combo box that selects certain values to fill the combo box.
When a choice is made to the combo box, in the On Change Event of the combo
box I have the following code:
Dim ssql As String

ssql = "Update PatientData " & _
"Set Value1 = '" & combo1 & "', " & _
"ModifierDate = '" & TimeAndDate & "', " & _
"ModifierID = '" & ap_GetUserName & "' " & _
"where ClinicalTrialId = " & GetActiveStudy & ";"

CurrentDb.Execute ssql, dbFailOnError

When a choice is made in the combo box it updates fine. Whenever a 2nd choice
is made to the same combo box, just choosing a different value, I get this
message.
Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top