trieudat191
New member
- Local time
- Today, 09:56
- Joined
- Nov 29, 2017
- Messages
- 5
Hello everyone
,
I am a newbie to Access. I have used this forum for 2 months and find it very useful. Most of the time, I do just follow the instruction from the posts and it works.
However, today, I am not that lucky. When I use the following code:
=DLookUp("[Price of Gasolio at Sedes]![EURO/LITRI]";"[Price of Gasolio at Sedes]";"[Codice_installazione] = [Price of Gasolio at Sedes]![SEDE] and [UniqueDate]>= [Price of Gasolio at Sedes]![Unique_StartDate] and [UniqueDate]< [Price of Gasolio at Sedes]![Unique_EndDate]")
It pops up the following error:"The expression you entered as a query parameter produced this error: Microsoft Access cannot find the name 'Codice_installazione' you entered in the expression".
It is interesting that although the Error MessageBox pops up in both cases (Form and Query), the results are returned in the Form, while the Query show blanks. :banghead: I need the results shown in the Query for further steps.
All the multiple criteria are in number format and I used copy and paste the fields to avoid misspellings.
Any suggestion is highly appreciated. Thanks in advance.

I am a newbie to Access. I have used this forum for 2 months and find it very useful. Most of the time, I do just follow the instruction from the posts and it works.
However, today, I am not that lucky. When I use the following code:
=DLookUp("[Price of Gasolio at Sedes]![EURO/LITRI]";"[Price of Gasolio at Sedes]";"[Codice_installazione] = [Price of Gasolio at Sedes]![SEDE] and [UniqueDate]>= [Price of Gasolio at Sedes]![Unique_StartDate] and [UniqueDate]< [Price of Gasolio at Sedes]![Unique_EndDate]")
It pops up the following error:"The expression you entered as a query parameter produced this error: Microsoft Access cannot find the name 'Codice_installazione' you entered in the expression".
It is interesting that although the Error MessageBox pops up in both cases (Form and Query), the results are returned in the Form, while the Query show blanks. :banghead: I need the results shown in the Query for further steps.
All the multiple criteria are in number format and I used copy and paste the fields to avoid misspellings.
Any suggestion is highly appreciated. Thanks in advance.