D
doyle60
I edit the wizard's code to open a form and go to a specific record to
turn off the filter (which Mr. Wizard annoying does). I've been doing
this for years. I'm trying it again with a new form but I get an
error that says: "Object doesn't support this property or method."
But I can't see anything in the form that would cause this error. Any
ideas? The code is:
___________________
On Error GoTo Err_Command118_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim rsFind As Recordset
stDocName = "QStoreInfofrm"
stLinkCriteria = "[StoreID]=" & "'" & Me![StoreID] & "'"
DoCmd.OpenForm stDocName
Set rsFind = Forms(stDocName).RecordsetClone
rsFind.RindFirst stLinkCriteria
Forms(stDocName).Bookmark = rsFind.Bookmark
Exit_Command118_Click:
Exit Sub
Err_Command118_Click:
MsgBox Err.Description
Resume Exit_Command118_Click
___________________
turn off the filter (which Mr. Wizard annoying does). I've been doing
this for years. I'm trying it again with a new form but I get an
error that says: "Object doesn't support this property or method."
But I can't see anything in the form that would cause this error. Any
ideas? The code is:
___________________
On Error GoTo Err_Command118_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim rsFind As Recordset
stDocName = "QStoreInfofrm"
stLinkCriteria = "[StoreID]=" & "'" & Me![StoreID] & "'"
DoCmd.OpenForm stDocName
Set rsFind = Forms(stDocName).RecordsetClone
rsFind.RindFirst stLinkCriteria
Forms(stDocName).Bookmark = rsFind.Bookmark
Exit_Command118_Click:
Exit Sub
Err_Command118_Click:
MsgBox Err.Description
Resume Exit_Command118_Click
___________________