Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 6th, 2006, 04:45 PM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You have to define the data type for the parameters ([Forms]![frmRptTrafficReport]![CurrentYear]) for the query. Here's a link to the article I found http://www.fontstuff.com/access/acctut01.htm when I had the same problem. Here's what my query ended up looking like:

PARAMETERS [Forms]![CdrlForm]![RptMo] Text (3), [Forms]![CdrlForm]![RptYear] Short;
TRANSFORM Count(ClinMatch.InFile) AS CountOfInFile
SELECT ClinMatch.clin
FROM ClinMatch
WHERE (((ClinMatch.CalMo)=[Forms]![CdrlForm]![RptMo]) AND ((ClinMatch.CalYr)=[Forms]![CdrlForm]![RptYear]))
GROUP BY ClinMatch.clin
PIVOT ClinMatch.File;







Similar Threads
Thread Thread Starter Forum Replies Last Post
Crosstab date query Brendan Bartley Access 3 March 29th, 2007 09:18 AM
Crosstab query with no results edubbelaar Access 0 November 22nd, 2004 06:12 AM
Crosstab Query Ben Access 7 November 22nd, 2004 06:08 AM
Crosstab query Berni016x SQL Server 2000 2 September 17th, 2004 10:43 AM
Crosstab query vladimir Access 1 December 1st, 2003 04:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.