Hi,
I’m in the process of updating/revising a database I did about a year ago with some of the new code I’ve learned from the forum over the past weeks. I’m begining to think I’m nuts to even try!
Anyway, I’m trying to open frmTimesheet to the name that is doubleclicked on frmEmployeeName. The form needs to open to a new record. I’ve used the follow code over and over in other instances with no problem. In this instance I’m getting an error message that states “Object variable or With Block Variable not set”. I’m not sure what is missing.
‘ Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst “[Auto Number] = ” & Str(Me![lstEmployeeName])
Me.Bookmark = rs.Bookmark
“Set rs = Me.Recordset.Clone” is the section highlighted when debugged.
I’ve enclosed a stripped down copy.
Thanks,
Leesha