P
plh
When I run, or I should say, try to run, the following, I get a type mismatch
error on the line:
Set rst = Me.RecordsetClone
This is very puzzling since it is copied almost verbatim from the help files,
and I have done this sort of thing before. There is something I am just not
seeing! Any help would be greatly appreciated!
Thanx,
-plh
Private Sub cmdCloseAndPassValue_Click()
On Error GoTo Err_cmdCloseAndPassValue_Click
Dim rst As Recordset
Set rst = Me.RecordsetClone
Set varBookmark = rst.Bookmark
'rs = Nothing
DoCmd.OpenForm "frmToolAssems", acNormal, , , , , OpenArgs & ";" &
txtCurrTool.Value
DoCmd.Close acForm, "frmTools"
Exit_cmdCloseAndPassValue_Click:
Exit Sub
Err_cmdCloseAndPassValue_Click:
MsgBox Err.Description
Resume Exit_cmdCloseAndPassValue_Click
End Sub
error on the line:
Set rst = Me.RecordsetClone
This is very puzzling since it is copied almost verbatim from the help files,
and I have done this sort of thing before. There is something I am just not
seeing! Any help would be greatly appreciated!
Thanx,
-plh
Private Sub cmdCloseAndPassValue_Click()
On Error GoTo Err_cmdCloseAndPassValue_Click
Dim rst As Recordset
Set rst = Me.RecordsetClone
Set varBookmark = rst.Bookmark
'rs = Nothing
DoCmd.OpenForm "frmToolAssems", acNormal, , , , , OpenArgs & ";" &
txtCurrTool.Value
DoCmd.Close acForm, "frmTools"
Exit_cmdCloseAndPassValue_Click:
Exit Sub
Err_cmdCloseAndPassValue_Click:
MsgBox Err.Description
Resume Exit_cmdCloseAndPassValue_Click
End Sub