G
Guest
Hi all,
I am trying to create a simple report. My current problem is that if I try
altering an existing report by simply adding a field name to the list of
fields in the 'SELECT...' statement, when I preview the report it requests
the value of the added field. I have checked the spelling etc etc. I have
also tried adding it from a query, where the query was built by double
clicking fields in table field lists.
If I try to create a brand new report it says 'subscript our of range'
the original report has the record source as:
SELECT person.[PERSON ID], person.AKAPID, SEARCHES.date, SEARCHES.type,
SEARCHES.amount
FROM person INNER JOIN SEARCHES ON person.[PERSON ID] = SEARCHES.[PERSON ID]
WHERE (((person.[PERSON ID])=[Forms]![person]![PID])) OR
(((person.AKAPID)=[forms]![person]![exakapid])) OR
(((person.AKAPID)=[forms]![person]![akapid]))
ORDER BY SEARCHES.date DESC;
All I want to do is restrict the report to only display values when a
certain condition is true, that condition being that SEARCHES.[CLIENT ID] is
equal to a particular value.
When I add this field to the report it all goes pearshaped.
Any help before I've pulled all my hair out is much appreciated.
I am trying to create a simple report. My current problem is that if I try
altering an existing report by simply adding a field name to the list of
fields in the 'SELECT...' statement, when I preview the report it requests
the value of the added field. I have checked the spelling etc etc. I have
also tried adding it from a query, where the query was built by double
clicking fields in table field lists.
If I try to create a brand new report it says 'subscript our of range'
the original report has the record source as:
SELECT person.[PERSON ID], person.AKAPID, SEARCHES.date, SEARCHES.type,
SEARCHES.amount
FROM person INNER JOIN SEARCHES ON person.[PERSON ID] = SEARCHES.[PERSON ID]
WHERE (((person.[PERSON ID])=[Forms]![person]![PID])) OR
(((person.AKAPID)=[forms]![person]![exakapid])) OR
(((person.AKAPID)=[forms]![person]![akapid]))
ORDER BY SEARCHES.date DESC;
All I want to do is restrict the report to only display values when a
certain condition is true, that condition being that SEARCHES.[CLIENT ID] is
equal to a particular value.
When I add this field to the report it all goes pearshaped.
Any help before I've pulled all my hair out is much appreciated.