H
handyman1600
I have 2 tables:
TestTable:
ID – Autonumber
First Name – Text
Last Name – Text
Added 3 names to Table1
TestTable2:
FullName – Uses Lookup to Table1
SQL View:
SELECT TestTable.ID, TestTable.[First Name] & " " & TestTable.[Last
Name] AS Expr1
FROM TestTable
ORDER BY TestTable.[Last Name];
Query1:
Setup a parameter in query name “Enter name to find” (text)
PARAMETERS [Enter name to find] Text ( 255 );
SELECT TestTable2.[Full Name]
FROM TestTable2
WHERE (((TestTable2.[Full Name]) Like "*" & "Enter name to find" &
"*"));
I get nothing when I run query, either with a valid name or blank.
Is there a problem referencing a Lookup Table in a parameter query?
Is there a workaround? VBA maybe?
Any help will be appreciated.
TestTable:
ID – Autonumber
First Name – Text
Last Name – Text
Added 3 names to Table1
TestTable2:
FullName – Uses Lookup to Table1
SQL View:
SELECT TestTable.ID, TestTable.[First Name] & " " & TestTable.[Last
Name] AS Expr1
FROM TestTable
ORDER BY TestTable.[Last Name];
Query1:
Setup a parameter in query name “Enter name to find” (text)
PARAMETERS [Enter name to find] Text ( 255 );
SELECT TestTable2.[Full Name]
FROM TestTable2
WHERE (((TestTable2.[Full Name]) Like "*" & "Enter name to find" &
"*"));
I get nothing when I run query, either with a valid name or blank.
Is there a problem referencing a Lookup Table in a parameter query?
Is there a workaround? VBA maybe?
Any help will be appreciated.