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

Tab Control & Form Recordset access reference problem

Status
Not open for further replies.

ceej

IS-IT--Management
Jun 20, 2001
46
US
I know this is a simple but tricky question.

I need to be able to reference the controls on a subform.

The form frmMain has a sub form named frmSub. The real name of the sub form is frmLineItems.

How do I reference the recordset without using ME?

This works: Set Me.Recordset = rst

That codes executes in the form load section.

 
The way to refer to a subform is via the subform control, which often has the same name as the form contained, but not always, so:

[tt]Me.[Name of Subform Control].Form.RecordsetClone[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top