Form with Tab Control Object with Continous Panel subform Record L

B

BobT

I have a form with a tab control object. The tab control object has three
tabs. On one tab I have a lookup combo box that when a key value is picked,
it populates a list in a subform below it. On this subform which is
configured to be viewed as a continus panel, I have a command button that I
created.

What I am trying to do is that when the command button is created, it looks
up the current record and displays it on the 3rd tab page of the tab control.
The code that I have for an event when the command button is clicked is:

--------------------------------------------------------------------------------
' Find the record that matches the control.
Dim rs As Object

Set rs = Me.Recordset.Clone
rs.FindNext "[VRC_Number] = " & Str(Nz(Forms![Form1]![VRC_Number333], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
--------------------------------------------------------------------
The problem that I am having is that the 3rd tab page displays the first
record in my continous panel list. I can not get it to display the particular
record within the list.

Can someone clue me in onto what I am missing here?

Thanks,
 
Top