K
kkrupsha
Hello!
I am trying to build a fairly simple form for a project I am working on.
Have only intermediate Access knowledge. The form that I am building is
based off a table that contains a field "RepCommunicationType". This is a
lookup field based off a table "RepCommunication". There is another field
within that table called "CommunicationValue". I am trying to add the
lookup field to the form and once the user chooses a value from the list box
for the RepCommunicationType, the field for CommunicationValue will
automatically populate based on the value I have assigned to it in the
RepCommunication Table. Essentially, I am trying to assign value to fields
on the form so that I can rank the information based on the form. I cannot
get the DLookup function to populate on my form. The form name is Account
Requirements.
I am writing the DLookup like this:
DLookup("[CommunicationValue]","RepCommunication","[RepCommunicationType]=Forms![RepCommunicationType]")
I am not getting an error, but it is not auto filling the value that I
assign to it.
Any ideas on what I am doing wrong... or if this is the best way to go about
it?
I am trying to liken this function to vlookup in Excel where I give the
array to look for and return a value... but it is not working.
Thanks!
I am trying to build a fairly simple form for a project I am working on.
Have only intermediate Access knowledge. The form that I am building is
based off a table that contains a field "RepCommunicationType". This is a
lookup field based off a table "RepCommunication". There is another field
within that table called "CommunicationValue". I am trying to add the
lookup field to the form and once the user chooses a value from the list box
for the RepCommunicationType, the field for CommunicationValue will
automatically populate based on the value I have assigned to it in the
RepCommunication Table. Essentially, I am trying to assign value to fields
on the form so that I can rank the information based on the form. I cannot
get the DLookup function to populate on my form. The form name is Account
Requirements.
I am writing the DLookup like this:
DLookup("[CommunicationValue]","RepCommunication","[RepCommunicationType]=Forms![RepCommunicationType]")
I am not getting an error, but it is not auto filling the value that I
assign to it.
Any ideas on what I am doing wrong... or if this is the best way to go about
it?
I am trying to liken this function to vlookup in Excel where I give the
array to look for and return a value... but it is not working.
Thanks!