G
Guest
Hello
I have made a query in VBA code to update the records of a table triggered
by the After Update event of a combobox. The query is designed to update any
record that has a field value equal to the string value of the combobox and
set the field “Shared†checkbox to True.
The code is:
DoCmd.RunSQL "UPDATE [tblItems] SET [Shared] = True WHERE [ItemCode] =
Forms![frmItems]![frmItemsSubform]![cboItemCode]; "
But no any record meeting the criterion is updated; do you see where the
problem is?
Thanks
GL
I have made a query in VBA code to update the records of a table triggered
by the After Update event of a combobox. The query is designed to update any
record that has a field value equal to the string value of the combobox and
set the field “Shared†checkbox to True.
The code is:
DoCmd.RunSQL "UPDATE [tblItems] SET [Shared] = True WHERE [ItemCode] =
Forms![frmItems]![frmItemsSubform]![cboItemCode]; "
But no any record meeting the criterion is updated; do you see where the
problem is?
Thanks
GL