A
Austin Gelbard
I am trying to use the DLOOKUP function as part of a
SELECT function to build a list for use as a ROW SOURCE to
create a pull down menu for data entry in a table. (wow
that sounds like a lot).
I keep reading that i can create a string/text criteria
for my dlookup function from a value in a form by adding a
single quote before the field name and then again after
SELECT [ProductNames] FROM ClientProducts
WHERE ClientID=DLookup
("[ClientID]","ClientNames","[ClientName]= ' " &
ClientName & " ' ")
GROUP BY [bbbName];
If i substitute a sample name instead of " & ClientName
& " it works like a charm... i get a list of all the
client's products whose name is selected in ClientName.
However, when i use the syntax recommended (shown above)
all i get is a prompt asking for a parameter value.
Is this not possible in a table and only in a form?
SELECT function to build a list for use as a ROW SOURCE to
create a pull down menu for data entry in a table. (wow
that sounds like a lot).
I keep reading that i can create a string/text criteria
for my dlookup function from a value in a form by adding a
single quote before the field name and then again after
SELECT [ProductNames] FROM ClientProducts
WHERE ClientID=DLookup
("[ClientID]","ClientNames","[ClientName]= ' " &
ClientName & " ' ")
GROUP BY [bbbName];
If i substitute a sample name instead of " & ClientName
& " it works like a charm... i get a list of all the
client's products whose name is selected in ClientName.
However, when i use the syntax recommended (shown above)
all i get is a prompt asking for a parameter value.
Is this not possible in a table and only in a form?