R
Rumie Kohl via AccessMonster.com
I have a main form with a subform on it. The main form has text box fields
with a drop-down for vendor name.
The subform is datasheet format. The subform has four fields on it. The
only reason I'm using the subform in datasheet is to show the User all the
records for this vendor instead of clicking thru the mainform. Also the
user can sort the datasheet, whereas the mainform is one at a time.
Once the user has sorted the records on the datasheet and want to see the
full record populate on the main form, I have the following click procured,
but it's not working.
Can anyone help me with this?
Private Sub Form_Click()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SSN] = " & Str(Nz(Me![frmVendor]![ComboVendor], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Thanks,
Romie
with a drop-down for vendor name.
The subform is datasheet format. The subform has four fields on it. The
only reason I'm using the subform in datasheet is to show the User all the
records for this vendor instead of clicking thru the mainform. Also the
user can sort the datasheet, whereas the mainform is one at a time.
Once the user has sorted the records on the datasheet and want to see the
full record populate on the main form, I have the following click procured,
but it's not working.
Can anyone help me with this?
Private Sub Form_Click()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SSN] = " & Str(Nz(Me![frmVendor]![ComboVendor], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Thanks,
Romie