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

Unlock subform 2 for editing

Status
Not open for further replies.

grgimpy

Programmer
Nov 1, 2006
124
US
I have my main form (frmORC), a subform within the main form (fsubDatasheet), and a subform within fsubDatasheet (fsubTestShot).

I am getting Error 2455 (You entered an expression that has an invalid reference to the property Form/Report) on the following line of code:

Code:
Me.fsubDatasheet.Form!fsubTestShot.Form.AllowEdits = True

I tried a test to make sure I was referencing subform 2 correctly with the following code and it works:

Code:
MsgBox Me.fsubDatasheet.Form!fsubTestShot.SourceObject

So I'm not sure what I am doing wrong here.

Any help would be greatly appreciated.
 
How are ya grgimpy . . .

Try:
Code:
[blue][fsubDatasheet].Form!fsubTestShot.Form.AllowEdits = True[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Thanks AceMan, but I'm still getting the same error...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top