Hi
Can anybody help me get past this problem. I keep getting an " Object variable or With block variable not set run time error 91"
here is the code. Any help most apreciated. All I want to be able to do is remember a record Id close the form and go to another form then return to the form and have the form display the remembered record.
Thanks Steve
Dim rs As Recordset
Set rs = Me.Recordset
QuoteNumberLng = 16 ' This is a public variant variable set to 16 for testing but could be any QuoID Number
If TogQuoteCalc = 0 Then
Forms!frmMain!frmQuote.SourceObject = "frmQuote"
Forms!frmMain!frmQuote.SetFocus
Forms!frmMain!frmQuote.Form!QuoID.SetFocus
rs.FindFirst "[QuoID] = " & CStr(QuoteNumberLng)
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End If