Solved

Microsoft Access  Me.Form.AllowEdits  works too well

Posted on 2013-01-29
3
540 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
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…

739 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