R
Rod
When I use a wizard to set up a combo box it writes the following code.
Why does it use an object rather than a recordset and why does it not close
the object after it has finished?
Am I missing something or is it just sloppy?
cheers
Rod
--------------------------
Private Sub FindOnLocation_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Task ID] = " & Str(Nz(Me![FindOnLocation], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Why does it use an object rather than a recordset and why does it not close
the object after it has finished?
Am I missing something or is it just sloppy?
cheers
Rod
--------------------------
Private Sub FindOnLocation_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Task ID] = " & Str(Nz(Me![FindOnLocation], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub