G
Guest
Below is a piece of code behind a double click event on a Form where we are trying to use a cloned recordset to bring records from the clone to the main form.
MS 97 Vewrsion (It works!
Private Sub FindItem(
Dim rs As Recordset, sCriteria As Strin
With Forms![Main Menu]![Item Master].For
sCriteria = "[Record #] = " & Me![Record #
Set rs = .RecordsetClon
rs.FindFirst sCriteri
If Not rs.NoMatch The
.Bookmark = rs.Bookmar
End I
End Wit
DoCmd.Close acForm, Me.Nam
End Su
MS 2000 (Does Not Work
Private Sub FindItem(
Dim rs As DAO.Recordse
Dim sCriteria As Strin
With Forms![Main Menu]![Item Master].For
sCriteria = "[Record #] = " & Me![Record #
Set rs = Me.Recordset.Clon
rs.Find "[Record #]= " & sCriteri
rs.Clos
End Wit
DoCmd.Close acForm, Me.Nam
End Su
MS 97 Vewrsion (It works!
Private Sub FindItem(
Dim rs As Recordset, sCriteria As Strin
With Forms![Main Menu]![Item Master].For
sCriteria = "[Record #] = " & Me![Record #
Set rs = .RecordsetClon
rs.FindFirst sCriteri
If Not rs.NoMatch The
.Bookmark = rs.Bookmar
End I
End Wit
DoCmd.Close acForm, Me.Nam
End Su
MS 2000 (Does Not Work
Private Sub FindItem(
Dim rs As DAO.Recordse
Dim sCriteria As Strin
With Forms![Main Menu]![Item Master].For
sCriteria = "[Record #] = " & Me![Record #
Set rs = Me.Recordset.Clon
rs.Find "[Record #]= " & sCriteri
rs.Clos
End Wit
DoCmd.Close acForm, Me.Nam
End Su