D
dchendrickson
I am using Access2002 / XP Pro.
I have an unbound textbox on a form that concatenates a
couple of items. I am trying to convert the expression
from a DLookup construct to an SQL statement in hopes
that the form's speed will improve. But when I create the
equivalent SQL, I get the #Name? error.
I have created the SQL in a temporary query and it
worked, then cut and paste into the textbox. I have
removed references in the WHERE statement and just
hardcoded a known value in order to debug and get a
response. Still get the error. Any ideas? Here is what I
have:
Old:
=DLookup("ConnectorLabel","tblConnector","ConnectorID = "
&[cboConnector]) & "-" & [txtPinLabel]
New:
=(SELECT ConnectorLabel FROM tblConnector WHERE
ConnectorID = Forms!frmCard![cboConnector] & "-" &
[txtPinLabel]
Thanks for your time and patience.
-dc
I have an unbound textbox on a form that concatenates a
couple of items. I am trying to convert the expression
from a DLookup construct to an SQL statement in hopes
that the form's speed will improve. But when I create the
equivalent SQL, I get the #Name? error.
I have created the SQL in a temporary query and it
worked, then cut and paste into the textbox. I have
removed references in the WHERE statement and just
hardcoded a known value in order to debug and get a
response. Still get the error. Any ideas? Here is what I
have:
Old:
=DLookup("ConnectorLabel","tblConnector","ConnectorID = "
&[cboConnector]) & "-" & [txtPinLabel]
New:
=(SELECT ConnectorLabel FROM tblConnector WHERE
ConnectorID = Forms!frmCard![cboConnector] & "-" &
[txtPinLabel]
Thanks for your time and patience.
-dc