S
Simon
Hey,
I am trying to open a recordset of a query and I received the too few
parameters error, which I found out was you the WHERE statement received data
from 2 controls on a form. If my understanding is correct its becuase the
OpenRecordset parameter requires a string and the data referencing the
controls should not form part of the string value.
So now I a defining a String to be used as the OpenRecordset parameter but I
am having issues, below if the SQL version:
WHERE (((tblPerson.[FIRST NAME]) Like "*" &
[forms]![frmHOTY08RecordOfEntry]![ROE_FIRST_NAME] & "*") AND
((tblPerson.[LAST NAME]) Like "*" &
[forms]![frmHOTY08RecordOfEntry]![ROE_LAST_NAME] & "*"));
A mess I know, but is anyone able to help me convert it so that I can add it
to my SQL string?
Thanks
Simon
I am trying to open a recordset of a query and I received the too few
parameters error, which I found out was you the WHERE statement received data
from 2 controls on a form. If my understanding is correct its becuase the
OpenRecordset parameter requires a string and the data referencing the
controls should not form part of the string value.
So now I a defining a String to be used as the OpenRecordset parameter but I
am having issues, below if the SQL version:
WHERE (((tblPerson.[FIRST NAME]) Like "*" &
[forms]![frmHOTY08RecordOfEntry]![ROE_FIRST_NAME] & "*") AND
((tblPerson.[LAST NAME]) Like "*" &
[forms]![frmHOTY08RecordOfEntry]![ROE_LAST_NAME] & "*"));
A mess I know, but is anyone able to help me convert it so that I can add it
to my SQL string?
Thanks
Simon