D
Daniel M
I have a query that i cannot seem to get working inside a report. The query
works independently when i run it but not in the form. Let me explain the
design a little first.
My table is simple, employeeid/username/firstname/lastname. My form has a
drop down box employees that has a query...
SELECT DISTINCTROW Employees.*
FROM Employees
ORDER BY Employees.Username
My form lists only the username column.
In the report if i put the control source as
=Forms!AssetEntry!employees.value I would assume to get the username. I do
not. i get the employeeid (a numerical value). Because i didnt know a work
around for this i created a query...
SELECT username
FROM employees
WHERE employeeid=Forms!AssetEntry!employees;
If i run the query with the form open it works fine. If i run the report it
does not. I am left with #name?
any help would be appreciated. Thanks!
works independently when i run it but not in the form. Let me explain the
design a little first.
My table is simple, employeeid/username/firstname/lastname. My form has a
drop down box employees that has a query...
SELECT DISTINCTROW Employees.*
FROM Employees
ORDER BY Employees.Username
My form lists only the username column.
In the report if i put the control source as
=Forms!AssetEntry!employees.value I would assume to get the username. I do
not. i get the employeeid (a numerical value). Because i didnt know a work
around for this i created a query...
SELECT username
FROM employees
WHERE employeeid=Forms!AssetEntry!employees;
If i run the query with the form open it works fine. If i run the report it
does not. I am left with #name?
any help would be appreciated. Thanks!