G
Guest
I have a form & subform that I'm trying to create a record selector with. My
subform has my records in a continuous form and my main form has an unbound
control. There are two controls on my subform called "MinDia" and "MaxDia".
What I want to do is be able to enter a diameter into my unbound control on
my main form and have it select/bookmark a record on the subform that the
diameter falls in between the "MinDia" and "MaxDia". Here is the code I'm
trying to use but it isn't working. Can anyone shed some light on this for me?
Dim MyRecSet As Object
Set MyRecSet = Me.frmNominalsSubform.Form.RecordsetClone
MyRecSet.FindFirst "[MinDia]>=" & Me.Diameter & " And [MaxDia ]<=" &
Me.Diameter
If Not MyRecSet.EOF Then
Me.frmNominalsSubform.Form.Bookmark = MyRecSet.Bookmark
End If
subform has my records in a continuous form and my main form has an unbound
control. There are two controls on my subform called "MinDia" and "MaxDia".
What I want to do is be able to enter a diameter into my unbound control on
my main form and have it select/bookmark a record on the subform that the
diameter falls in between the "MinDia" and "MaxDia". Here is the code I'm
trying to use but it isn't working. Can anyone shed some light on this for me?
Dim MyRecSet As Object
Set MyRecSet = Me.frmNominalsSubform.Form.RecordsetClone
MyRecSet.FindFirst "[MinDia]>=" & Me.Diameter & " And [MaxDia ]<=" &
Me.Diameter
If Not MyRecSet.EOF Then
Me.frmNominalsSubform.Form.Bookmark = MyRecSet.Bookmark
End If