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

Positioning in Subform 1

Status
Not open for further replies.

apestaart

Technical User
Feb 5, 2004
107
NL
Going to a control in a subform I have already found out.
But how to go to the last record of that subform to change data I can't find.
Who can help me.

regards Apestaart
 
You can use:
[tt] DoCmd.GoToRecord , , acNewRec[/tt]
 
Forms![mainform name]![subform control name].Form.Recordset.MoveLast

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thank You PHV. That works. Where can I find more abaut those syntaxes?

Sorry Remou, I want to go to the last record not to a new one. It in not possible to use DoCmd.GoToRecord because I can't name the subform as a form.

Regards ,
Apestaart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top