T
T Smith
I have two tables-key log and vendor. The vendor table consists of two
columns: vendor and vendor phone number. Vendor is the primary key. I have a
form based on key log that has fields: vendor name and vendor phone number.
I am trying to use Dlookup to lookup the vendor phone number from the vendor
table based on the entry in the vendor name field. (the vendor name field is
a list box which pulls it's data from the vendor name column of the vendor
table). There is a requery macro that runs when a change or update is made
to the vendor name field but regardless of what vendor is selected in the
name field the same vendor phone number is returned each time (the weird
thing is that the phone number returned is the second number in the column
not the first). I even tired playing with Dlookup in the immediate window
and had the same results-what am I doing wrong?
Any help is appreciated. Thank you.
columns: vendor and vendor phone number. Vendor is the primary key. I have a
form based on key log that has fields: vendor name and vendor phone number.
I am trying to use Dlookup to lookup the vendor phone number from the vendor
table based on the entry in the vendor name field. (the vendor name field is
a list box which pulls it's data from the vendor name column of the vendor
table). There is a requery macro that runs when a change or update is made
to the vendor name field but regardless of what vendor is selected in the
name field the same vendor phone number is returned each time (the weird
thing is that the phone number returned is the second number in the column
not the first). I even tired playing with Dlookup in the immediate window
and had the same results-what am I doing wrong?
Any help is appreciated. Thank you.