473,395 Members | 1,574 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,395 software developers and data experts.

Criteria for a crosstab query

Hi guys? I am new to this community, i'm very pleased to join you.

For the past 2 weeks i have been trying to specify criteria in a crosstab query but i get a fun message which says"Microsoft Jet Database does not recognize whatever criteria i would have specified as valid field name or expression."

I am stuck and don't know what to do next.
Jan 18 '07 #1
4 1599
MMcCarthy
14,534 Expert Mod 8TB
Hi guys? I am new to this community, i'm very pleased to join you.

For the past 2 weeks i have been trying to specify criteria in a crosstab query but i get a fun message which says"Microsoft Jet Database does not recognize whatever criteria i would have specified as valid field name or expression."

I am stuck and don't know what to do next.
Hi Tererai

Welcome to thescripts.

Change your query view to SQL and copy and paste the query in here.

Mary
Jan 18 '07 #2
Hi

Thanks for the tip. It worked.

Tererai
Feb 9 '07 #3
Expand|Select|Wrap|Line Numbers
  1. PARAMETERS [month and year] Text ( 255 );
  2. TRANSFORM Sum(qryJoining.Item_Cost) AS SumOfItem_Cost
  3. SELECT qryJoining.DEPOT, qryJoining.Fleet_No, Sum(qryJoining.Item_Cost) AS [Total Of Item_Cost]
  4. FROM qryJoining
  5. GROUP BY qryJoining.DEPOT, qryJoining.Fleet_No
  6. ORDER BY qryJoining.DEPOT, qryJoining.Fleet_No
  7. PIVOT qryJoining.Item_ID;
  8.  
Feb 9 '07 #4
I finally figured out where i went wrong.Now have the query up and running and i have pasted the SQL format below.

Expand|Select|Wrap|Line Numbers
  1. PARAMETERS [month and year] Text ( 255 );
  2. TRANSFORM Sum(qryJoining.Item_Cost) AS SumOfItem_Cost
  3. SELECT qryJoining.DEPOT, qryJoining.Fleet_No, Sum(qryJoining.Item_Cost) AS [Total Of Item_Cost]
  4. FROM qryJoining
  5. GROUP BY qryJoining.DEPOT, qryJoining.Fleet_No
  6. ORDER BY qryJoining.DEPOT, qryJoining.Fleet_No
  7. PIVOT qryJoining.Item_ID;
  8.  
Feb 9 '07 #5

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

Similar topics

3
by: Susan | last post by:
Can a textbox on a form be referenced as the criteria for a field in a crosstab query? When I use an expression like Forms!PFrmCriteria!Criteria, an error message appears saying Access can not...
7
by: newguy | last post by:
I am trying to get the totals of a table by client by type of income. This query will get what I am looking for with each unique combination as a row: SELECT Sales.Client, BillCode.Type,...
2
by: x | last post by:
hi i have made a crosstab query in which row heading is "date", colum heading is "aircraft type" and the value to be summed up is "1-10 row totals". i want to create a simple query which should...
8
by: Penny | last post by:
(Access 2003 Multiuser Split DB, Windows XP Pro) Hi All, I would really appreciate just some basic tips on how to make a Crosstab Form based on a Crosstab Query. The query always has the same...
10
by: hobbson | last post by:
I have a basic crosstab queries that counts the models of each type of server device in a data center. What I'm trying to do is restrict the crosstab query from returning counts for devices that are...
4
by: m.wanstall | last post by:
I have a crosstab query that compiles data for Months of the year. I have a stacked select query on top of that crosstab query that uses the latest 2 months data and exports it to a fixed length...
4
by: torontolancer | last post by:
Hi there how r u .I would really appriciate ur concern regarding checking out this code. its beind a command button and i am have a combo box selecing a query criteria and then pressing the button...
4
by: rdsandy | last post by:
Hi, I have some code below in VBA for Access 2003 which is on a button called "RentalCrosstabPercTtlQtyMonthLoc_Click". This is a crosstab query which brings up rental items down the side, who...
2
by: Aussie Rules | last post by:
Hi, I have a access 2007 database with a cross tab query. Based on the selection critieria the cross tab may contain a different number columns in the result. For example if the query is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.