Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form controls

Status
Not open for further replies.

newbieone

Technical User
Jan 3, 2006
50
US
I have a form that the user would like to be able to turn on and off the ability to edit. I have tried the properties window but it locks the whole form.

Here is the code I have tried but the trigger is not working to activate the code

Private Sub cmdEditform_Click()
Form.AllowAdditions = True
Form.AllowEdits = True
Form.AllowDeletions = True

it seems like the code is being ignored because even after I hit the locked button the form is still allowing edits.
 
'Me.' Might be better. I think you need a refresh:
[tt]Me.AllowAdditions = True
Me.AllowEdits = True
Me.AllowDeletions = True
Me.Refresh[/tt]

 
How are ya newbieone . . .

Forms!FormName.AllowEdits = True

or

Me.AllowEdits = True

Calvin.gif
See Ya! . . . . . .
 
Both worked but for ease of code will use the Me.Allowedits and the me.refresh. thanks for the quick response.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top