J
Jeff Garrison
I have a form that has buttons in the detail section of the form (Attach
File, View Attachment, Delete Attachment). I want to have the View
Attachment and Delete Attachment buttons disabled unless there is something
is a text box (AttachmentPath). I've set both of the button's Enabled
properties to No. I also have some vba in the On Current for the form as
follows:
If Not IsNull(AttachmentPath) Then
cmdViewAttachment.Enabled=True
End If
It works fine if there is something in the AttachmentPath control, but on a
new record, it is enabled as well. I'd like for both buttons to be disabled
unless there is something in the AttachmentPath field.
How can I fix this so to do what I want?
Thanks
JeffG
File, View Attachment, Delete Attachment). I want to have the View
Attachment and Delete Attachment buttons disabled unless there is something
is a text box (AttachmentPath). I've set both of the button's Enabled
properties to No. I also have some vba in the On Current for the form as
follows:
If Not IsNull(AttachmentPath) Then
cmdViewAttachment.Enabled=True
End If
It works fine if there is something in the AttachmentPath control, but on a
new record, it is enabled as well. I'd like for both buttons to be disabled
unless there is something in the AttachmentPath field.
How can I fix this so to do what I want?
Thanks
JeffG