Try this:
DLookUp("[Energy for production]","tblEnergy","[material type] = 1")
>Hi! This is a long one, so here's the background:
>I've got 2 tables, one called tblEnergy and one called tblPackaging. In
[quoted text clipped - 14 lines]
>However I get error messages and this does not seem to work. Has anyone got
>any bright ideas on how I should write the correct syntax for this function?
greencecil - 28 Jan 2005 09:05 GMT
Thanks for your suggestion.
I will try it, but I don't really understand why "material type = 1" would
give me the value for 'material type 2' or 'material type 3' when I need it?
I want the relevant material type value, which can be for 'material type 1' ,
'material type 2', 'material type 3' etc. I can try it, but I don't think it
will work for the other material types.
Any suggestions on syntax that will solve this?
> Try this:
> DLookUp("[Energy for production]","tblEnergy","[material type] = 1")
[quoted text clipped - 17 lines]
> >However I get error messages and this does not seem to work. Has anyone got
> >any bright ideas on how I should write the correct syntax for this function?