I am not sure if using DLookup is the right way to go, but basically spent most of the afternoon trying to figure out to have the foreign table (MasterIDsNames) feed the Dealername, when the user adds a new record and enters the DealerID# on the form for the ProgramTracking table.
Everything works fine of course when the user works with existing records (with the ID# and Dealername already entered of course), but when I try to add a new record using the DealerID#, I am stuck.
I initially tried something like : Iif([Dealername]=IsNull, DLookup("[Dealername]","MasterIDNames"),[Dealername]]
This didn't work for numerous reasons, and then I tried various list/combo boxes for the user to select the ID# and Name at the same time but no luck.
Once again will appreciate anyone's help on this ....
TGH
Everything works fine of course when the user works with existing records (with the ID# and Dealername already entered of course), but when I try to add a new record using the DealerID#, I am stuck.
I initially tried something like : Iif([Dealername]=IsNull, DLookup("[Dealername]","MasterIDNames"),[Dealername]]
This didn't work for numerous reasons, and then I tried various list/combo boxes for the user to select the ID# and Name at the same time but no luck.
Once again will appreciate anyone's help on this ....
TGH