A
Aaron
I have two tables, Demoraphics1 and Demographics2. In Demographics1 I have a
lot of different data of which ID and Age are two sets. Demographics2
contains a subset of individuals from Demographics1. I am trying to setup a
query that will list each individual in Demographics2 and pull the Age from
Demographics1. Due to the way the table is constructed I cannot use the
relationship between identical IDs in Demographics1 and Demographics2. I am
trying to construct a Dlookup that will accomplish this for me, but I seem to
be running into a problem. When I use the following code:
F1DOB:
DLookUp("[Age]","Demographics1","[Demographics2]![ID]"=[Demographics1]![ID])
I get a message box asking for Demographics1!ID, where if I leave blank I
get the same value for all records and if I put a value in it I get nothing
for all records. Any help would be greatly appreciated.
lot of different data of which ID and Age are two sets. Demographics2
contains a subset of individuals from Demographics1. I am trying to setup a
query that will list each individual in Demographics2 and pull the Age from
Demographics1. Due to the way the table is constructed I cannot use the
relationship between identical IDs in Demographics1 and Demographics2. I am
trying to construct a Dlookup that will accomplish this for me, but I seem to
be running into a problem. When I use the following code:
F1DOB:
DLookUp("[Age]","Demographics1","[Demographics2]![ID]"=[Demographics1]![ID])
I get a message box asking for Demographics1!ID, where if I leave blank I
get the same value for all records and if I put a value in it I get nothing
for all records. Any help would be greatly appreciated.