This most often happens when I use the query in an afterupdate or lost.focus and before I leave the box I change the record and on form close a bunch of other queries run. Anyone know what might be going on here? Even if you don't have the answer and you can throw me a bone that would help, this problem keeps coming up and it's very frustrating.
Private Sub chkVisa_Click()
If chkVisa.Value = True Then
CurrentDb.Execute ("UPDATE Orders SET InvoiceSent=Yes WHERE OrderID=" & txtOrderID.Value)
txtPaidDate.Value = Int(Now())
Me.Refresh
Else
CurrentDb.Execute ("UPDATE Orders SET InvoiceSent=No WHERE OrderID=" & txtOrderID.Value)
txtPaidDate.Value = Format("", "mm/dd/yy")
End If
On Error GoTo ERR_POSearch
ERR_POSearch:
End Sub

New Topic/Question
Reply



MultiQuote





|