Hello all,
I am redesigning an old database and the forms are going to be changed to have some navigation buttons in the form header for more real estate. So I have 6 buttons with transparent properties. My question is that I would like to have the buttons be the same on every form so it is consistent. But if the form related to the button is loaded I want to have the button disabled.
So I put the following code in on load event.below. But I thought this should be in a module and called on every form. But I am stuck at that point. How do I call something like that?
Thank You
Jim Wagner
If CurrentProject.AllForms("frmReportsNew").IsLoaded = True Then
Forms!frmReportsNew!cmdOpenrptReports.Enabled = False
Else
Forms!frmReportsNew!cmdOpenrptReports.Enabled = True
End If
Posted by: luvmymelody@yahoo.com
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
Tidak ada komentar:
Posting Komentar