mamradzelvy
Member
- Local time
- Today, 20:42
- Joined
- Apr 14, 2020
- Messages
- 145
Hi,
I'm trying today to make a button on a bound form that would change a "no" value to "yes" within my table on the currently open record.
I've tried this:
However this results in an error, which in rough translation says "MS Access can not update all records in update query."
my assumption is that running an sql command is not the correct approach to a bound form control and this results in problem because i'm currently working with said Table?
Edit: forgot to actually ask a question regarding the issue- What would be the proper way to go about this?
I'm trying today to make a button on a bound form that would change a "no" value to "yes" within my table on the currently open record.
I've tried this:
Code:
Private Sub BtnFinalise_Click()
DoCmd.RunSQL "UPDATE Tabule1 SET TabStatus = 'Yes' WHERE ID LIKE '" & Me!txtID.Value & "';"
End Sub
However this results in an error, which in rough translation says "MS Access can not update all records in update query."
my assumption is that running an sql command is not the correct approach to a bound form control and this results in problem because i'm currently working with said Table?
Edit: forgot to actually ask a question regarding the issue- What would be the proper way to go about this?
Last edited: