Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / October 2007

Tip: Looking for answers? Try searching our database.

CrossTab query in SQL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave L - 31 Oct 2007 14:48 GMT
Hello,
I need to set-up a crosstab query that will create a recordset of data I can
manipulate for a report.  The initial data is ran through a parameter and
then I create the crosstab from the data.  When I open the recordset I get
runtime error 3139 for my parameter syntax.  I wrote this... " PARAMETERS '"
& [Forms]![reportcenterfrm]![Combo35] & "' " & _.  What am I doing wrong?  
Thanks,
Dave
Douglas J. Steele - 31 Oct 2007 15:24 GMT
In the Declaration, the Parameter is the name of the parameter, not its
value. As well, in Crosstab queries, it's critical that the data type of the
parameter be declared:

" PARAMETERS [Forms]![reportcenterfrm]![Combo35] TEXT " & _

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> Hello,
> I need to set-up a crosstab query that will create a recordset of data I
[quoted text clipped - 6 lines]
> Thanks,
> Dave
Dave L - 31 Oct 2007 16:01 GMT
Thanks, I had to declare its value alse, but it seems to work.

> Hello,
> I need to set-up a crosstab query that will create a recordset of data I can
[quoted text clipped - 4 lines]
> Thanks,
> Dave
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.