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

go to control

Status
Not open for further replies.

samotek

Technical User
May 9, 2005
197
BG
How can i go to a record in the single form? I can go to the control productid with the command DoCmd.GoToControl "productid" .
On opening the form i want to go to the record productid = 13. How can i go this record ?
 
What about this ?
Code:
Me.RecordSet.FindFirst "productid=13"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
How are ya samotek . . .

Instead of:
Code:
[blue]DoCmd.GoToControl "productid"[/blue]
the more accepted practice is:
Code:
[blue]Me!ProductID.[purple][b]SetFocus[/b][/purple][/blue]

You can also use a recordsetclone to goto the record, but PHV has provided the most direct method.

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

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top