Dirty Button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

This is in my form's on open event. New_Invoice is a button

If Forms!Entry_Screen.New_Invoice.IsDirty = True Then
DoCmd.GoToRecord , , acNewRec
End If

I get an error message saying that the property or method isn't supported.
What's the best way to see if a button has been clicked?
 
nick said:
This is in my form's on open event. New_Invoice is a
button

If Forms!Entry_Screen.New_Invoice.IsDirty = True Then
DoCmd.GoToRecord , , acNewRec
End If

I get an error message saying that the property or method
isn't
supported. What's the best way to see if a button has been
clicked?

Set a flag in the button's OnClick event.

Public pbNewInv as Boolean

pbNewInv = True

Why aren't you using the OnClick to do the New Record
anyway? Curious.

--
Nick Coe (UK)
AccHelp v1.01 Access Application Help File Builder
http://www.alphacos.co.uk/
Download Free Copy
----
 
Back
Top