tommeekers
Programmer
I have a very weird problem with a very simple SQL query.
My main form has one subform and one button on it. In the subform I have a table in datasheet view. This table contains a few text fields and a Yes/No field called selected. The user can update this field directly on the datasheet by clicking the checkbox (marking the record as selected).
The button on my main form is used for selecting all records at once. I tried to do this with a simple SQL query.
This returns an error Syntax error in UPDATE command, but to my best knowledge there is not syntax error in this line. Any idea what could prevent the update from working ?
My main form has one subform and one button on it. In the subform I have a table in datasheet view. This table contains a few text fields and a Yes/No field called selected. The user can update this field directly on the datasheet by clicking the checkbox (marking the record as selected).
The button on my main form is used for selecting all records at once. I tried to do this with a simple SQL query.
Code:
DoCmd.RunSQL "UPDATE [i]MyTable[/i] SET [i]selected[/i] = True"