I have figured that dlookup is the way I need to go...
I have tried it dozens of ways, no luck, hopefully someone out there can tell me what I am missing.
Btbl
autoID...field1...field2...bcode...units...unitprice...field4
BCtbl
bcodes...price...desc
my subform (Charges) is linked to Btbl and I am trying dlookup to fill unitprice from price
can you write the dlookup as an expression?
in the form, bcode is a combobox, in the afterupdate i tried this...
unitprice = dlookup("[price]" , "BCtble" , "[bcode]=" & bcode)
i have also tried it as vba code.. no luck
i tried putting in a stop in the vba code to see if it is even running, it never stops, so i dont know why in the afterupdate isnt even kicking in.
i get no error, no ?name, no #error, just a blank field staring at me.
thanks
I have tried it dozens of ways, no luck, hopefully someone out there can tell me what I am missing.
Btbl
autoID...field1...field2...bcode...units...unitprice...field4
BCtbl
bcodes...price...desc
my subform (Charges) is linked to Btbl and I am trying dlookup to fill unitprice from price
can you write the dlookup as an expression?
in the form, bcode is a combobox, in the afterupdate i tried this...
unitprice = dlookup("[price]" , "BCtble" , "[bcode]=" & bcode)
i have also tried it as vba code.. no luck
i tried putting in a stop in the vba code to see if it is even running, it never stops, so i dont know why in the afterupdate isnt even kicking in.
i get no error, no ?name, no #error, just a blank field staring at me.
thanks