P
Paul.
Hi Everyone,
Here is my problem:
I am receiving every month some Hotel Guest Surveys consolidated in a Table
called GSTS_MTH_Reports with the following fields:
*GSTSQuestID (number)
*MHRReportMonth (number, 1 to 12)
*HotelID (a 4 letters ID)
*3MRAGSS (the score for the question)
to explain, each record gives a score obtained for an hotel for a month and
for a given question.
I would like to have an additional column/field giving me for each record
the score obtained for the previous month.
I am trying to do this by a Select query which contains all the fields from
this table
and an additional field with a DLookup expression as follow input with the
expression builder as follow:
Expr1:
DLookUp("[GSTS_MTH_Reports]![3MRAGSS]","[GSTS_MTH_Reports]","[GSTS_MTH_Reports]![GSTSQuestID]="
& [GSTSQuestID] & "And [GSTS_MTH_Reports]![HotelID]=" & [HotelID] & "And
[GSTS_MTH_Reports]![3MRAGSS]+1=" & [3MRAGSS])
When I run the query, in my new column I get an #Error in the whole column
When I click a record also get an error message box telling me:
"The Object does not contain the Object 'SINHB."
(SINHB being the Hotel ID for this record)
I really don't know what's wrong, and since I am quite new to Access I might
be also having a wrong approach
Please help me ! I am desperate !
Paul
Here is my problem:
I am receiving every month some Hotel Guest Surveys consolidated in a Table
called GSTS_MTH_Reports with the following fields:
*GSTSQuestID (number)
*MHRReportMonth (number, 1 to 12)
*HotelID (a 4 letters ID)
*3MRAGSS (the score for the question)
to explain, each record gives a score obtained for an hotel for a month and
for a given question.
I would like to have an additional column/field giving me for each record
the score obtained for the previous month.
I am trying to do this by a Select query which contains all the fields from
this table
and an additional field with a DLookup expression as follow input with the
expression builder as follow:
Expr1:
DLookUp("[GSTS_MTH_Reports]![3MRAGSS]","[GSTS_MTH_Reports]","[GSTS_MTH_Reports]![GSTSQuestID]="
& [GSTSQuestID] & "And [GSTS_MTH_Reports]![HotelID]=" & [HotelID] & "And
[GSTS_MTH_Reports]![3MRAGSS]+1=" & [3MRAGSS])
When I run the query, in my new column I get an #Error in the whole column
When I click a record also get an error message box telling me:
"The Object does not contain the Object 'SINHB."
(SINHB being the Hotel ID for this record)
I really don't know what's wrong, and since I am quite new to Access I might
be also having a wrong approach
Please help me ! I am desperate !
Paul