R
rgrantz
Okay, I have a problem performing the following:
In DB design, I've always assumed it's better to assign numeric values to
things like names, textual descriptions, etc., so I make several tables that
hold these values.
Example: Table "EmpNames" has 2 fields, "EmployeeNumber" and
"EmployeeName." I use comboboxes on forms for the data entry people to
choose the actual text name, but have the numeric value associated with it
go into the field.
Now, however, for some reason I can't seem to pull the associated name text
from the field when viewing data or running queries. I realize that I can
use two fields in the data-entry table (both name and number), but it seems
I should be able to show reports and query results that return the
associated text based on the numeric value that the table actually contains.
I've tried DLOOKUP and a few other things, and was hoping I could get some
quick help on this while I tackle a couple other VBA issues.
Is this where a SUB query kind of thing should be used?
I use the query and expression builders, by the way, so if this can be
presented as an expression to put in the Criteria field or some such thing I
would appreciate it.
Thanks for the help
In DB design, I've always assumed it's better to assign numeric values to
things like names, textual descriptions, etc., so I make several tables that
hold these values.
Example: Table "EmpNames" has 2 fields, "EmployeeNumber" and
"EmployeeName." I use comboboxes on forms for the data entry people to
choose the actual text name, but have the numeric value associated with it
go into the field.
Now, however, for some reason I can't seem to pull the associated name text
from the field when viewing data or running queries. I realize that I can
use two fields in the data-entry table (both name and number), but it seems
I should be able to show reports and query results that return the
associated text based on the numeric value that the table actually contains.
I've tried DLOOKUP and a few other things, and was hoping I could get some
quick help on this while I tackle a couple other VBA issues.
Is this where a SUB query kind of thing should be used?
I use the query and expression builders, by the way, so if this can be
presented as an expression to put in the Criteria field or some such thing I
would appreciate it.
Thanks for the help