I have a form (frmRegistration) and a subform (frmRegistrationSub). On the subform is a field that receives a letter when a button is clicked. This field gets counted. So, after clicking the button, I need to update the count. I do this with the Docmd.RunSQL code.
START OF CODE
Registered.SetFocus
Registered = "R"
DoCmd.RunSQL "UPDATE tblAttendeesRegisteredHold SET tblAttendeesRegisteredHold.AttendeeCt = [AttendeeCt]+1;"
DoCmd.Save acForm, "frmRegistrationSub"
Forms!frmRegistration.frmRegistrationSub.Requery
END OF CODE
I tried to save the form and the subform but it errors out on both. So, how do you save the form(s) after the update takes place? Do you need more info?
Thank you.
START OF CODE
Registered.SetFocus
Registered = "R"
DoCmd.RunSQL "UPDATE tblAttendeesRegisteredHold SET tblAttendeesRegisteredHold.AttendeeCt = [AttendeeCt]+1;"
DoCmd.Save acForm, "frmRegistrationSub"
Forms!frmRegistration.frmRegistrationSub.Requery
END OF CODE
I tried to save the form and the subform but it errors out on both. So, how do you save the form(s) after the update takes place? Do you need more info?
Thank you.