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

FindRecord will not display correct record

Status
Not open for further replies.

Cads

Technical User
Jan 17, 2000
40
0
0
GB
I'm using the FindRecord command in VBA (Docmd.Findrecord)to move to a specific record on a form which has a query to provide its data. Although the code gets me to the right record number (according to the record selector), the data displayed on screen remains the first record in the recordset. If I move the form onto the next record and move it back again, (using the record selector), the correct record is displayed. I've tried putting in a line of code containing the Refresh action but this doesn't change anything. Although I could program the VBA to 'MoveNext' and then 'Move Previous', it's messy. Does anyone know why this is happening and how I can correct it. Thanks.

Steve House
shouse@icaew.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top