I want to view a dynaset of a tbl recordset.
However in the code below I get a run time 3011 .. "make sure the object exists and that you spelled….etc" Hours of varifing spelling is correct I am stumped.
thanks in advance
'_______
Private Sub cmd_Go_Click() ‘ dialog frm with combo
' get the varable from the dialog frm's combo
projectID = Combo_projectNumber.Value
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim frmNewSepProject As String
Dim strSQL As String
'close the dialog frm
DoCmd.Close
'dim the recordset to include all projetID = [Project_ID]
strSQL = "SELECT * FROM tbl_separationKeyInputs WHERE Project_ID = " & projectID
Set db = CurrentDb
Set rs = db.OpenRecordSet(strSQL, dbOpenTable)
End Sub
However in the code below I get a run time 3011 .. "make sure the object exists and that you spelled….etc" Hours of varifing spelling is correct I am stumped.
thanks in advance
'_______
Private Sub cmd_Go_Click() ‘ dialog frm with combo
' get the varable from the dialog frm's combo
projectID = Combo_projectNumber.Value
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim frmNewSepProject As String
Dim strSQL As String
'close the dialog frm
DoCmd.Close
'dim the recordset to include all projetID = [Project_ID]
strSQL = "SELECT * FROM tbl_separationKeyInputs WHERE Project_ID = " & projectID
Set db = CurrentDb
Set rs = db.OpenRecordSet(strSQL, dbOpenTable)
End Sub