473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Are Crosstab Queries responsible this Access Error Msg?

I have no problem when I use the following date filter with a Simple Query:

Between [StartDate] And [EndDate]


But I am running into an impasse when I have a query which is referencing a Crosstab query.

I want to filter the results between two dates.

For example, the following works just fine - even when a Crosstab Query is involved:

Between #1/1/2012# And #3/1/2012#

But of course I would prefer to use a variable rather than "hardcode" the dates. But when a Crosstab Query is involved and I use something like the following:


Between [StartDate] And [EndDate]

I always get this error message:

"The Microsoft Access database engine does not recognize '[StartDate]' as a valid field name or expression."

Can't figure out a solution.
Feb 7 '13 #1

✓ answered by Seth Schrock

I have run into that when using the Forms!frmFormName!ControlName reference in the WHERE clause of a crosstab query. Trying reading this link: Error when running crosstab query with a parameter. I know the situation is slightly different, but it might still apply.

5 1525
Seth Schrock
2,965 Expert 2GB
I have run into that when using the Forms!frmFormName!ControlName reference in the WHERE clause of a crosstab query. Trying reading this link: Error when running crosstab query with a parameter. I know the situation is slightly different, but it might still apply.
Feb 8 '13 #2
That link provides the solution.
Thanks!
Feb 8 '13 #3
@Seth Schrock
When I open the Query after setting the StartDate and EndDate parameters, it prompts me once for StartDate and EndDate and displays the data just fine.
When I open the Report that uses the same Query, I am prompted multiple times for StartDate and EndDate. Wierd.
Any suggestions?

(For now, my dumb workaround is to press "Cancel" for the first 3 StartDate prompts and then to input StartDate and EndDate just once.
Feb 11 '13 #4
Seth Schrock
2,965 Expert 2GB
As this question doesn't match the title of the thread, it would be better to ask this in a new thread. It will also probably get more attention as a new thread then it would in here. Feel free to link to this thread.
Feb 11 '13 #5
zmbd
5,501 Expert Mod 4TB
Paul Howarth:
Respectfully, Seth is correct in that you should start a new thread; however, when you do so, you may/should consider placing a link back to this thread.
For your convenience you can cut and paste the following into your new thread:[url=http://bytes.com/topic/access/answers/946707-crosstab-queries-responsible-access-error-msg]Are Crosstab Queries responsible this Access Error Msg?[/url]
Feb 12 '13 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sotiris Rentoulis | last post by:
Dear friends, I wonder if exist a way to make crosstab queries in SQL Server like those in Access without "external" programming. Does the SQL Server supports the "TRANSFORM" SQL-extension? ...
0
by: Tim Marshall | last post by:
I googled the Oracle groups on this and didn't find much. Anyone here know of any approximations to Jet Crosstab queries? I'm converting a Jet reporting application with loads of graphs using...
1
by: anirudh | last post by:
Hello, I have a knotty problem. I have a table : say table A: ParameterID InBatch Algae 1 Ammonia 0 Potassium 1 Magnesium 1 Sodium 0
2
by: BeruthialsCat | last post by:
I have 4 crosstabs which are keyed on a managerID field. I want to combine them to provide the data for a graph. I currently have them combined in a union query to produce 4 rows of data for each...
2
by: zwasdl | last post by:
Some of my queries take 1 hour to run, can I run other queries in access while waiting on the first query? If so, how can I do it? Thanks a lot, Wei
1
by: greg | last post by:
I have a table that I want to left join with crosstab query and I want to be able to edit data in the table (only). However, once I perform the join, the entire query result cannot be edited. Is...
2
by: garethfx | last post by:
Hi all Anybody had experience bring together 2 or more crosstab queries using the UNION? ALL 3 crosstabs come from 3 sourcing queries from the same table so of course normally runnning 3...
7
by: tcveltma | last post by:
Hi again, Ok, so I have about 15 crosstab queries. Each crosstab query is an employee's name. Within the query are the weeks as the column heading, the work order numbers as the row heading, and...
4
by: pkj7461 | last post by:
Hi, I have three crosstab queries to be exported to the same excel worksheet. How can I achieve this? If there is any link that would explain the form details behind crosstab queries, it would be...
0
MMcCarthy
by: MMcCarthy | last post by:
Rather than using the Access design view change the view to SQL. I am going to attempt to outline the general syntax used for SQL queries in Access. Angle brackets <> are used in place of some...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.