Hi
I am trying to use the Dlookup function to put an amountawarded figure in a field on a form, based on a choice of LFURN from a combo box on the same form.
Here is the code I have used in the 'afterupdate' event on the combo box
Private Sub LFURN_AfterUpdate()
AmountAwarded = DLookup("AmountAwarded", "LocalFoodProjects", "LFURN='" & LFURN & "'")
So essentially, the figure shown in the AmountAwarded field is AmountAwarded figure in the LocalFoodProjects table, based on the LFURN being the same in that table and what is chosen the current form.
When i run it, it gets no errors, but doesnt do anything, certainly doesnt populate the AmountAwarded box?
I am sure its just a little tweaking but if anyone can help that would be greeat
Thanks
bagpuss