B
Bradley C. Hammerstrom
Access2000
********************************
Private Sub Form_Load()
If Not IsNull(Me.OpenArgs) Then
With Me.RecordsetClone
.FindFirst "PhotoID = " & Me.OpenArgs
If Not .NoMatch Then Me.Bookmark = .Bookmark
End With
End If
End Sub
******************************
The problem is that PhotoID is on the subform, not the main form. The main
form opens showing all records, then the user can pick from a couple of
combos to narrow the subform, but I want the form to open when called from
the other form (which sets the OpenArgs to PhotoID) and go to that PhotoID
on the subform (that shows all records by default).
How do I refer to the subform in the .FindFirst statement?
Brad H.
********************************
Private Sub Form_Load()
If Not IsNull(Me.OpenArgs) Then
With Me.RecordsetClone
.FindFirst "PhotoID = " & Me.OpenArgs
If Not .NoMatch Then Me.Bookmark = .Bookmark
End With
End If
End Sub
******************************
The problem is that PhotoID is on the subform, not the main form. The main
form opens showing all records, then the user can pick from a couple of
combos to narrow the subform, but I want the form to open when called from
the other form (which sets the OpenArgs to PhotoID) and go to that PhotoID
on the subform (that shows all records by default).
How do I refer to the subform in the .FindFirst statement?
Brad H.