P
P-chu via AccessMonster.com
Would someone mind taking a look to seek what order my code should be in.
It's not working. Right now it is in the control source of field
"associatedname", but I'm thinking it needs to be somewhere else like on
change, enter, before or after....maybe not.
Two table involved:
Table1
Table2
=IIf(Nz([numberfield],0)=0,"",DLookUp("[associatedname]","[table1]","
[numberfield] = " & [num_field]) where [city]="Orlando".
Then I also need a continuing if statement to add another city for
Tallahassee that is pulled from table2, but the rest of the fields are the
same. Not sure how to proceed, or if I am looking at this totally wrong. My
goal is to pull in the associated name from the appropriate table when the
city field is listed as Orlando or Tallehassee.
Thanks in advance.
It's not working. Right now it is in the control source of field
"associatedname", but I'm thinking it needs to be somewhere else like on
change, enter, before or after....maybe not.
Two table involved:
Table1
Table2
=IIf(Nz([numberfield],0)=0,"",DLookUp("[associatedname]","[table1]","
[numberfield] = " & [num_field]) where [city]="Orlando".
Then I also need a continuing if statement to add another city for
Tallahassee that is pulled from table2, but the rest of the fields are the
same. Not sure how to proceed, or if I am looking at this totally wrong. My
goal is to pull in the associated name from the appropriate table when the
city field is listed as Orlando or Tallehassee.
Thanks in advance.