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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Referencing Property on SubForm--HELP 1

Status
Not open for further replies.

CatahoulaHound

Technical User
Feb 26, 2001
47
US
Hello All:
I am trying to set the value of a Property on a SubForm. My syntax is Me!fCheckRegistSubFrm.AllowEdits however I get an error message that says-"The object doesn't contain the Automation object 'Me.' Can somebody please tell me what I am doing wrong.
Thanks
Pat
 
Where are you putting this code? Class module? General module?
 
Hi Pat!
Try:

Me.fCheckRegistSubFrm.Form.AllowEdits = '(True or false)

:) Gord
ghubbell@total.net
 
Sorry:
I should have given all the details at first. I have a main form that displays family data with a sub-form that displays data for the kids in that family that are registered to play sports. The sub-form has a field [PlayerID] I want to DblClick that field and allow editing of the underlying table. I put the code on the DblClick event of the sub-form.
Thanks Again
Pat
 
Hi Gord:
I get the same error. Am I not putting the code in the right place??
Thanks
Pat
 
Oh! then it should just be:

Me.Allowedits = True ! ;-)
Gord
ghubbell@total.net
 
That Did It---Thanks Again Gord for all of your invaluable advice and assistance.
Pat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top