G
Guest
Hello,
with the following code i am trying to uncheck a box on my continous form as
it's closing and this does not work. my recordsource is ProdHistory and in
that table the record that i need to disselect everytime the form closes is
Select. can anyone help?
Private Sub Form_Close()
DoCmd.SetWarnings False
If Me.Dirty Then Me.Dirty = False 'Save first.
strSQL = "UPDATE ProdHistory SET Select = false " & _
"WHERE Select = true;"
DoCmd.RunSQL strSQL
Me.requery
DoCmd.SetWarnings True
End Sub
with the following code i am trying to uncheck a box on my continous form as
it's closing and this does not work. my recordsource is ProdHistory and in
that table the record that i need to disselect everytime the form closes is
Select. can anyone help?
Private Sub Form_Close()
DoCmd.SetWarnings False
If Me.Dirty Then Me.Dirty = False 'Save first.
strSQL = "UPDATE ProdHistory SET Select = false " & _
"WHERE Select = true;"
DoCmd.RunSQL strSQL
Me.requery
DoCmd.SetWarnings True
End Sub