Hi,
I have a command button on a form that the user can use to browse to a file and the user can select that file and a hyperlink to that file is stored in a txtfield for that record.
I then have a command button that a user can click to open and view the associated file.
This all works fine. BUT:
I would like the command button that allows the user to view the file to be hidden if no hyperlink was added. In other words the txtfield for the hyperlink IsNull.
Here is what I have tried with no luck:
Thank you!!!
I have a command button on a form that the user can use to browse to a file and the user can select that file and a hyperlink to that file is stored in a txtfield for that record.
I then have a command button that a user can click to open and view the associated file.
This all works fine. BUT:
I would like the command button that allows the user to view the file to be hidden if no hyperlink was added. In other words the txtfield for the hyperlink IsNull.
Here is what I have tried with no luck:
Code:
Private Sub txtSelectedFile_AfterUpdate() If (Me.[txtSelectedFile]) = IsNull Then cmdExplore.Visible = False Else cmdExplore.Visible = True End If End Sub
Comment