G
Guest
Hi,
I have created a query in Access and then viewed its SQL statement that
Access generated and copied and pasted it to my Open SQL Statement. see below:
rst1Util.Open "SELECT t_GCondDetails.CommConds_Idx,
t_GCondsDB.GDB_DefaultClause FROM t_GCondsDB INNER JOIN t_GCondDetails ON
t_GCondsDB.GCondsDB_Idx = t_GCondDetails.GCondsDB_Idx WHERE
(((t_GCondDetails.CommConds_Idx)=[lkrbfrm_CommConds]![CommConds_Idx]))"
I get the following error: "Runtime error - 2147217904, No value given for
one or more required parameters"
I a suck when it comes to SQL, Can someone point out what I am doing wrong.
I am doing all the preliminary code right such as declaring ADODB.Recordset,
ADODB.Connection, rstAny1.LockType = adLockOptimistic, rstAny1.CursorLocation
= adUseServer, rstAny1.CursorType = adOpenKeyset and so forth....
All are appreciated, Thanks
Robert
I have created a query in Access and then viewed its SQL statement that
Access generated and copied and pasted it to my Open SQL Statement. see below:
rst1Util.Open "SELECT t_GCondDetails.CommConds_Idx,
t_GCondsDB.GDB_DefaultClause FROM t_GCondsDB INNER JOIN t_GCondDetails ON
t_GCondsDB.GCondsDB_Idx = t_GCondDetails.GCondsDB_Idx WHERE
(((t_GCondDetails.CommConds_Idx)=[lkrbfrm_CommConds]![CommConds_Idx]))"
I get the following error: "Runtime error - 2147217904, No value given for
one or more required parameters"
I a suck when it comes to SQL, Can someone point out what I am doing wrong.
I am doing all the preliminary code right such as declaring ADODB.Recordset,
ADODB.Connection, rstAny1.LockType = adLockOptimistic, rstAny1.CursorLocation
= adUseServer, rstAny1.CursorType = adOpenKeyset and so forth....
All are appreciated, Thanks
Robert