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

Moving through records in a subform sheet

Status
Not open for further replies.

gtaborda

Programmer
May 13, 2007
75
GB
Hi there

I need to move through each record on a subform sheet.
I don't want to use

Set dbs = CurrentDb()
Set rst = dbs.OpenRecordset(sqlline)

Instead what I want is for the cursor to go focus on field1 of record 1, then field1 of record 2, field1 of record 3, etc

I need to physically set the focus on each line/record of the sheet.

Any ideas how to do this ????
thanks

 
Use the Recordset property of the Form object.

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

A starting point:
Code:
[blue]   [[purple][b][i]subFormName[/i][/b][/purple]].Form.Recordset.MoveNext[/blue]

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

Be sure to see FAQ219-2884:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top