I have two combo boxes on a form. The user makes a selection from the first combo box (cbxFIND) and the subform on the form is updated via the following code:
Private Sub cbxFIND_AfterUpdate()
Dim rst As Recordset
Set rst = Me.RecordsetClone
rst.FindFirst "[FUNCTION NO] ='" & Left(Me![cbxFIND], 6) & "'"
If Not rst.NoMatch Then Me.Bookmark = rst.Bookmark
Exit Sub
I would like to have the subform updated again (using the results of the above) based on the user's selection in the second combo box (cbxSEEK). I've tried to use the above code again but I can't seem to get it to work. Something like:
Private Sub cbxSEEK_AfterUpdate()
Dim rst As Recordset
Dim rstSub as Recordset
Set rst = Me.RecordsetClone
Set rstSub=rst.Clone
rstSub.FindFirst "[FINANCE NO] ='" & Left(Me![cbxSEEK], 6) & "'"
If Not rstSub.NoMatch Then Me.Bookmark = rstSub.Bookmark
Exit Sub
Any suggestions? Am I way off base here? Thanks.
Richard...
Private Sub cbxFIND_AfterUpdate()
Dim rst As Recordset
Set rst = Me.RecordsetClone
rst.FindFirst "[FUNCTION NO] ='" & Left(Me![cbxFIND], 6) & "'"
If Not rst.NoMatch Then Me.Bookmark = rst.Bookmark
Exit Sub
I would like to have the subform updated again (using the results of the above) based on the user's selection in the second combo box (cbxSEEK). I've tried to use the above code again but I can't seem to get it to work. Something like:
Private Sub cbxSEEK_AfterUpdate()
Dim rst As Recordset
Dim rstSub as Recordset
Set rst = Me.RecordsetClone
Set rstSub=rst.Clone
rstSub.FindFirst "[FINANCE NO] ='" & Left(Me![cbxSEEK], 6) & "'"
If Not rstSub.NoMatch Then Me.Bookmark = rstSub.Bookmark
Exit Sub
Any suggestions? Am I way off base here? Thanks.
Richard...