[mso] MS Access Forms-Auto Fill field in Subform

I have a form that has a subform.


The main form information comes from Table A. In table A there is a field 
called "Initials"


The information from the subform comes from/goes into Table B. however one of 
the fields in Table B is "Name". 


Primarily, I wish to fill this field from the "Name" field of another table C 
using the "Initials" field from Table A as the reference.

I tried using =DLOOKUP("name", "[Table C]", "[table A]![initials]=[table 
C]![initials]"), but I get an #error.


As an added complication I would also like to further qualify the lookup to be 
something like
=DLOOKUP("name", "[Table C]", "[table A]![initials]=[table C]![initials] AND 
[table C]![type] = 'Prod'")
where 'Prod' is a constant.

Any help would be appreciated.
Larry


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the dropdown 
menu at the top.  This will allow you to unsubscribe your email address or 
change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso

To be able to share files with the group, you must join our Yahoo sister group. 
 This group will not allow for posting of emails, but will allow you to join 
and share problem files, templates, etc.:  
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE 
SHARING ONLY.

If you are using Outlook and you see a lot of unnecessary code in your email 
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Other related posts: