M
magpie
I need to look up data from other tables to a form, but I cannot seem to get
this right.
I have entered an expression in the control source for an unbound text box
called 'Chassis number', to look at the value entered in a data entry box
called 'Sequence number' and enter the corresponding value in a table
'Sequence numbers', whixh is not the main table for the form (This is
'Stocktake res').
The expression I have entered is:
=DLookup("[Chassis number]","Sequence numbers","[Sequence number] =" _ &
Forms![Stocktake res]!Sequence number)
but the syntax isn't correct. I have used the help screen, but am unsure
about the underscore and gaps in the example given.
The form is just called Form1.
I should be grateful for any help with this - especially as I need to look
up a lot of other fields and tables once this is solved!
Thank you
magpie
this right.
I have entered an expression in the control source for an unbound text box
called 'Chassis number', to look at the value entered in a data entry box
called 'Sequence number' and enter the corresponding value in a table
'Sequence numbers', whixh is not the main table for the form (This is
'Stocktake res').
The expression I have entered is:
=DLookup("[Chassis number]","Sequence numbers","[Sequence number] =" _ &
Forms![Stocktake res]!Sequence number)
but the syntax isn't correct. I have used the help screen, but am unsure
about the underscore and gaps in the example given.
The form is just called Form1.
I should be grateful for any help with this - especially as I need to look
up a lot of other fields and tables once this is solved!
Thank you
magpie