G
Guest
I am very unsuccessfully attempting to use DLookUp to automatically fill a
field on a form based on the contents of the field that is selected from a
combo box on the same form.
This is my expression:
=DLookUp([MaintenanceItems!Price],[MaintenanceItems],[MaintenanceItems!Item]=[Item])
I used the expression builder to create it. The final "[Item]" is the field
on the form that I want to compare to the field in the table. (I was
expecting it to say something like
"[Forms]![MainForm]![TabControlName]![Item]" but expression builder seems to
think otherwise!)
Anyway, it doesn't matter whether I keep it the same as expression builder
creates it or add in the extra bits, I still get the "#Name?" in the field
that I want automatically filled.
Can somebody tell me where I have gone wrong?
Thanks!
Ali
field on a form based on the contents of the field that is selected from a
combo box on the same form.
This is my expression:
=DLookUp([MaintenanceItems!Price],[MaintenanceItems],[MaintenanceItems!Item]=[Item])
I used the expression builder to create it. The final "[Item]" is the field
on the form that I want to compare to the field in the table. (I was
expecting it to say something like
"[Forms]![MainForm]![TabControlName]![Item]" but expression builder seems to
think otherwise!)
Anyway, it doesn't matter whether I keep it the same as expression builder
creates it or add in the extra bits, I still get the "#Name?" in the field
that I want automatically filled.
Can somebody tell me where I have gone wrong?
Thanks!
Ali