Jeff Conrad said:
That would be the Form's Current event. You will find it
on the Form's Properties list. This will fire every time
you change records.
Hmmm... I tried that one. It doesn't work for me. This is an extract of my
code:
Private Sub Form_Current()
Call closeForm
End Sub
Private Sub closeForm()
'disable all textfields
txtPriceOne.Enabled = False
txtPriceTwo.Enabled = False
txtPriceThree.Enabled = False
txtPaid.Enabled = False
txtCommentOne.Enabled = False
txtCommentTwo.Enabled = False
txtCommentThree.Enabled = False
txtInvoiceDate.Enabled = False
txtDueDate.Enabled = False
txtItemOne.Enabled = False
txtItemTwo.Enabled = False
txtItemThree.Enabled = False
cmbClientID.Enabled = False
cmbSalesRepID.Enabled = False
chkAddGST.Enabled = False
btCalculateTotal.Enabled = False
btDueDate.Enabled = False
btEmployer.Enabled = False
'switch close status
chkClosed = True
'change label of close button
btClose.Caption = "Open Invoice"
End Sub