Advertisement

06.04.2008 at 03:11PM PDT, ID: 23458577
[x]
Attachment Details

Microsoft Access 2007 reports  on Vista: syntax error in Parameter clause.

Asked by rolfg in Access Reports, Microsoft Access Database, Windows Vista

I was getting an "error executing command" from the switchboard in Access 2007 on Vista. The app was Access 2002-2003 based, but after converting it to 2007 it still happens.

When I run the report itself I get "Syntax Error  in Parameter Clause"

When I open in design mode and run the query, it runs fine. When I run the report I get the error.

It runs fine in Access 2003 and 2007 on XP machines. (And then people are surprised I don't like Vista... )

The data are actually on MS SQL 2000 and accessed via ODBC, this config has worked fine for years. Most of the app works fine except for reports with parameters

Here is the query:

PARAMETERS [Which Class] Text ( 255 );
SELECT vwCollectedBalance.Collected, vwCollectedBalance.Tuition, vwCollectedBalance.BalanceDue, vwCollectedBalance.ClassNo, PaymentStatus.PaymentStatus, EnrollmentType.EnrollmentDescription, PaymentStatus.PaymentStatusSortOrder, EnrollmentType.EnrollmentReportOrder, [LastName] & ", " & [Firstname] AS Name, FundBusterStatus.FundBusterStatus, vwCollectedBalance.ContactID
FROM (((vwCollectedBalance INNER JOIN EnrollmentType ON vwCollectedBalance.EnrollmentID = EnrollmentType.EnrollmentID) INNER JOIN PaymentStatus ON vwCollectedBalance.PaymentStatusID = PaymentStatus.PaymentStatusID) INNER JOIN Contacts ON vwCollectedBalance.ContactID = Contacts.ContactID) INNER JOIN FundBusterStatus ON Contacts.FundBusterStatusID = FundBusterStatus.FundBusterStatusID
WHERE (((vwCollectedBalance.ClassNo)=[Which Class]));

So what gives?

Thanks for your help!

Rolf
Start Free Trial
[+][-]06.04.2008 at 03:16PM PDT, ID: 21714662

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.04.2008 at 09:56PM PDT, ID: 21716505

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Reports, Microsoft Access Database, Windows Vista
Sign Up Now!
Solution Provided By: boag2000
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.05.2008 at 07:58AM PDT, ID: 21720270

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.05.2008 at 08:55AM PDT, ID: 21720966

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.12.2008 at 07:36AM PDT, ID: 21769897

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.12.2008 at 09:48AM PDT, ID: 21771352

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628