Not recognizing expression as a valid field name when applying data to a chart

intern_in_malawi

New member
Local time
Today, 22:27
Joined
Jun 15, 2015
Messages
6
So I'm new to Access, and I am trying use a query that can be referred to by a chart. So the idea is that I use the query to select data only from the date range that the user chooses on the home screen of the database for their chart (using the command Between [Forms]![Home Screen]![From] And [Forms]![Home Screen]![to])
Although it has been working fine for charts that only have two parameters, when I attempted to make a line graph that sorts by 3 parameters (i.e. date and amount for different types of something), it stops. I get the message that "The Microsoft Office Access database does not recognize [Forms]![Home Screen]![From] as a valid field name or expression" or something to that effect.
Any ideas on how to remedy this problem? I'd rather not remove the whole specification created by using the dates from the home screen, as it has been working fine on all other aspects of my charts and reports.
Thanks!
 
Show the rowsource for the chart!
 
Frankly, I'm not sure if I'm able/allowed to rename it, and if so, I don't know how.
Total newbie.
I mean, it's doing what I need it to 95% of the time, but the other 5% is really necessary and completely non-functional.
The main problem is that Access only seems to be unable to recognize it for this one chart that I'm trying to make- the query can successfully use that parameter to create all sorts of other charts and to populate the date ranges on the report, but as soon as I try to use the date criteria (that uses this query parameter) along with sorting it by type and amount in a line graph, it freaks out. Ideas?
 
suggest you take JHB's advice and show the SQL for chart rowsouce
 
you need to

1. remove the criteria from apptdate
2. create another column for apptdate
3. change the Groupby for this new column to Where
4. put the criteria you just deleted on this new column
 
Unfortunately this did not solve the problem.

What did NOT happen is entirely uninteresting - see my signature

What did happen is.

You need to show what you've done exactly and say what the exact outcome was. We cannot guess these things.
 
I did exactly what CJ_London suggested. See the zip file for my query parameters.
The exact same problem that I described in the initial post is still happening.
 

Users who are viewing this thread

Back
Top Bottom