Jim-
Maybe something like this:
Public Sub FixButtons(strFormName As String)
If CurrentProject.AllForms(strFormName).IsLoaded = True Then
Forms(strFormName)!cmdOpenrptReports.Enabled = False
Else
Forms(strFormName)!cmdOpenrptReports.Enabled = True
End If
Forms(strFormName)!cmdOpenrptReports.Enabled = False
Else
Forms(strFormName)!cmdOpenrptReports.Enabled = True
End If
End Sub
Call it like this:
FixButtons Me.Name
John Viescas, Author
Effective SQL
SQL Queries for Mere Mortals
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications
(Paris, France)
On May 31, 2017, at 9:19 PM, luvmymelody@yahoo.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com> wrote:
__._,_.___
Posted by: John Viescas <johnv@msn.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (3) |
Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.
.
__,_._,___
Tidak ada komentar:
Posting Komentar