My problem is that my code doesn't seem to be passing the parameter values to the query. I'm not very profiencient in access so i'm not sure where its going wrong.
[code=vb]
On Error GoTo WriteTableInfoT o_SRCE_TBL_STRU CTUREErr
Dim strErrorMsg As String
Dim db As DAO.Database, qd As DAO.QueryDef
Dim varRelate As Variant
' Check for related child rows
' Get a pointer to this database
Set db = CurrentDb
'
' Run the Delete query
Set qd = db.QueryDefs("q ry2DeleteTargTb lColsFromSTRUCT URE")
' Set the parameters
qd![App Vsn] = [Forms]!frm1BuildDescr TabOuterTable![cmbAppVsn]
qd![Cust ID] = [Forms]!frm1BuildDescr TabOuterTable![cmbCust_ID]
qd![Target Table] = [Forms]!frm1BuildDescr TabOuterTable![cmbTargetTable]
qd.Execute
qd.Close
Set qd = Nothing
Set db = Nothing
[/code]
It errors out on this line and throw an error message that the Target Table needs to be selected.
Thanks,
Eric
[code=vb]
On Error GoTo WriteTableInfoT o_SRCE_TBL_STRU CTUREErr
Dim strErrorMsg As String
Dim db As DAO.Database, qd As DAO.QueryDef
Dim varRelate As Variant
' Check for related child rows
' Get a pointer to this database
Set db = CurrentDb
'
' Run the Delete query
Set qd = db.QueryDefs("q ry2DeleteTargTb lColsFromSTRUCT URE")
' Set the parameters
qd![App Vsn] = [Forms]!frm1BuildDescr TabOuterTable![cmbAppVsn]
qd![Cust ID] = [Forms]!frm1BuildDescr TabOuterTable![cmbCust_ID]
qd![Target Table] = [Forms]!frm1BuildDescr TabOuterTable![cmbTargetTable]
qd.Execute
qd.Close
Set qd = Nothing
Set db = Nothing
[/code]
It errors out on this line and throw an error message that the Target Table needs to be selected.
Code:
qd![App Vsn] = [Forms]!frm1BuildDescrTabOuterTable![cmbAppVsn]
Eric
Comment