B
Bomber
Hi all,
I'm getting an error message: "Run Time error '3061': , Too few parameters.
Expected 1."
When trying to run this piece of code:
Set TextRS = db.OpenRecordset("SELECT tblConditions_Build.Rec_Id,
tblConditions_Build.AppNo, tblConditions_Build.Condition_Id,
tblConditions_Build.Print_Yes_or_No, tblConditions.Condition_Text FROM
tblConditions_Build LEFT JOIN tblConditions ON
tblConditions_Build.Condition_Id = tblConditions.ID WHERE
(((tblConditions_Build.AppNo)=([forms]![frmMain]![txtAppNo])) AND
((tblConditions_Build.Print_Yes_or_No)=Yes));")
I expect it's failing at the ([forms]![frmMain]![txtAppNo]) ?
If I cut and paste this code in a the sql part of the query builder it works
fine. Any ideas ?
cheers,
Adam
I'm getting an error message: "Run Time error '3061': , Too few parameters.
Expected 1."
When trying to run this piece of code:
Set TextRS = db.OpenRecordset("SELECT tblConditions_Build.Rec_Id,
tblConditions_Build.AppNo, tblConditions_Build.Condition_Id,
tblConditions_Build.Print_Yes_or_No, tblConditions.Condition_Text FROM
tblConditions_Build LEFT JOIN tblConditions ON
tblConditions_Build.Condition_Id = tblConditions.ID WHERE
(((tblConditions_Build.AppNo)=([forms]![frmMain]![txtAppNo])) AND
((tblConditions_Build.Print_Yes_or_No)=Yes));")
I expect it's failing at the ([forms]![frmMain]![txtAppNo]) ?
If I cut and paste this code in a the sql part of the query builder it works
fine. Any ideas ?
cheers,
Adam