GoToRecord Problem

  • Thread starter Thread starter HowardChr via AccessMonster.com
  • Start date Start date
H

HowardChr via AccessMonster.com

I have the following code in my VB:

Code:
DoCmd.GoToRecord , [Response Tasks], acGoTo = [Response_ID], "08"


This is not working however.... The table name is Response Tasks, the Column
name is Response_ID and I am trying to pull the info from the one named "08".
What am I doing wrong in the procedure?

Thanks in advance
 
So you are trying to make the active form display record 08? I think you'd
be better off using recordset.clone

Try something like:

' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Response_ID] = 08"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Re-Post Append to Append Query 2
Append to Append Query 2
Create new records in form 1
GoToRecord Sintax 6
How to .GoToRecord on another form 2
SQL 2005 Databound Form 2
GoToRecord 1
Gotorecord Where Equal 2

Back
Top