Solved

Microsoft Access  Me.Form.AllowEdits  works too well

Posted on 2013-01-29
3
530 Views
Last Modified: 2013-01-29
Access 2010  continuous form

I have added an option button to my access form.   See code below.   It works only once :)

What options do I have here.?

Private Sub OptAllowEdits_AfterUpdate()
       Me.Form.AllowEdits = OptAllowEdits
End Sub
0
Comment
Question by:peispud
3 Comments
 
LVL 14

Expert Comment

by:Bill Ross
ID: 38831078
Hi,

Once you set a form property it stays that way until you set it differently or close and repoen the form to get the default property setting.

What do you want to happen?

Regards,

bill
0
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 38831088
Are you trying to toggle it?

The click event of a label works well for this sort of thing:

Private Sub lblMyLabel_Click()

Me.AllowEdits = Not (Me.AllowEdits )
Me.lblMyLabel.Caption = iif(Me.AllowEdits = true, "Disable Edits", "Enable Edits")

End Sub

Open in new window

0
 

Author Closing Comment

by:peispud
ID: 38831140
Yes,  I am trying to toggle.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now