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

Referencing subform

Status
Not open for further replies.

Aerowolf

Programmer
Nov 6, 2002
64
OK...I am able to use the following to populate fields in a record of the subform:

[Forms]![frmOrderEntry2]![Order Details]![QTY1] =

where [Order Details] is a subform that has the table OrderDetails as the data source.

How do I go to the next record in the subform?

Edwin
 
I just answered my own question.

I used the following:

[Forms]![frmOrderEntry2]![Order Details].SetFocus
DoCmd.GoToRecord , , acNewRec

Thanks

Edwin
 
What about this ?
Forms!frmOrderEntry2!Order Details.SetFocus
Forms!frmOrderEntry2!Order Details.Form.Recordset.MoveNext

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
When I use the following:

[Forms]![frmOrderEntry2]![Order Details].SetFocus

I get an error that says the database cannot move the focus to the control Order Details.

Edwin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top