Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Databases > Access   »   Crosstab Query in MS Access

 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old Sep 18, 2006, 12:22 AM
sukkarfarid
New Member
sukkarfarid is offline
 
Join Date: Sep 2006
Posts: 10
sukkarfarid See this member's comment history on his/her Profile page.
Crosstab Query in MS Access

How can i change the my query to crosstab query ..
please see the picture ..



i write this code ... how can i change to a crosstab query

SELECT SeaTable.location, Count(SeaTable.location) AS CountOflocation
FROM SSFMainTable INNER JOIN SeaTable ON SSFMainTable.ID = SeaTable.MainTLink
WHERE (((SSFMainTable.AD) Between [enter1] And [enter]))
GROUP BY SeaTable.location
HAVING (((SeaTable.location) Like "G/A*" Or (SeaTable.location) Like "Qiz*"));

Thanks and regards
Farid

Reply With Quote
 
     

Answers
 
 
Old Sep 18, 2006, 05:07 AM   #2  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 22,927
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
A crosstab query requires THREE columns in the source. One column for the Rows, one for the columns and one for calculation. So you have to add a column to your query. I would add a column like so:

Counts: " "

use the Crosstab Wizard and make that column your ROW, make the Location column your Columns and then count the primary key field for your counts.
  Reply With Quote
 
     


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
Tax Query Pallab Taxes 4 Aug 30, 2006 12:30 PM
DNS Query Query. A Query about DNS Queries.... __Tigger__ Networking 12 Nov 16, 2005 12:55 AM
Run MS access query as exe parthzad Access 1 Sep 2, 2005 04:46 PM
Update Query in Access lebboy Access 1 Jul 11, 2005 11:26 AM
Ms access update query mrugesh.vora Access 0 Jun 4, 2005 09:07 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 02:23 AM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.