I've checked the threads but haven't been able to come up with a
solution to my issue. Help......
I have a simple form based on a table.
Within the form is a subform that is also, through a Q, based on the
same table.
The code:
Private Sub Select_BeforeUp date(Cancel As Integer)
On Error GoTo resetselect_Err
DoCmd.SetWarnin gs False
DoCmd.RunSQL "UPDATE SHOWS SET SHOWS.[Select] = No; ", -1
DoCmd.RunComman d acCmdRefresh
DoCmd.ShowAllRe cords
DoCmd.SetWarnin gs True
resetselect_Exi t:
Exit Sub
resetselect_Err :
MsgBox Error$
Resume resetselect_Exi t
End Sub
I understand WHY I am getting the write conflict but have not been able
to find a workaround.
The form works exactly as it should. It is basically a series of check
boxes. If you check 1, all other checks are set to null (or -1). I
only get the write conflict when I uncheck a box that is already
checked. It's not a huge issue but will be to the novice user.
I've tried adding DoCmd.RepaintOb ject acForm, "SHOWS" (as well as
removing the error lines, yeah I know) but the problem is innate.
Any thoughts.....
Thanks, C~
solution to my issue. Help......
I have a simple form based on a table.
Within the form is a subform that is also, through a Q, based on the
same table.
The code:
Private Sub Select_BeforeUp date(Cancel As Integer)
On Error GoTo resetselect_Err
DoCmd.SetWarnin gs False
DoCmd.RunSQL "UPDATE SHOWS SET SHOWS.[Select] = No; ", -1
DoCmd.RunComman d acCmdRefresh
DoCmd.ShowAllRe cords
DoCmd.SetWarnin gs True
resetselect_Exi t:
Exit Sub
resetselect_Err :
MsgBox Error$
Resume resetselect_Exi t
End Sub
I understand WHY I am getting the write conflict but have not been able
to find a workaround.
The form works exactly as it should. It is basically a series of check
boxes. If you check 1, all other checks are set to null (or -1). I
only get the write conflict when I uncheck a box that is already
checked. It's not a huge issue but will be to the novice user.
I've tried adding DoCmd.RepaintOb ject acForm, "SHOWS" (as well as
removing the error lines, yeah I know) but the problem is innate.
Any thoughts.....
Thanks, C~
Comment