Connecting Tech Pros Worldwide Help | Site Map

Reports, filters and crosstabs

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 03:03 AM
Cassie Pennington
Guest
 
Posts: n/a
Default Reports, filters and crosstabs

I am using VBA to determine which query sits behind a report,
depending upon the preferred sort order. This has worked perfectly
for ordinary select queries behind reports, but it seems to be
struggling with crosstab reports. It presents a "jet engine" error.
Do you know if this is an issue, or is there a better way of doing
this?

Thanks in anticipation.

Cassie

  #2  
Old November 13th, 2005, 03:04 AM
MacDermott
Guest
 
Posts: n/a
Default Re: Reports, filters and crosstabs

The sort order of the query is often irrelevant to the presentation on the
report.
It's better to set the sort order as a property of the report itself.
I'd suggest the report's OnOpen event as the place to do this.

HTH
- Turtle

"Cassie Pennington" <cassie.dowling@btinternet.com> wrote in message
news:473882f8.0409191032.447cabf2@posting.google.c om...[color=blue]
> I am using VBA to determine which query sits behind a report,
> depending upon the preferred sort order. This has worked perfectly
> for ordinary select queries behind reports, but it seems to be
> struggling with crosstab reports. It presents a "jet engine" error.
> Do you know if this is an issue, or is there a better way of doing
> this?
>
> Thanks in anticipation.
>
> Cassie[/color]


  #3  
Old November 13th, 2005, 03:04 AM
MacDermott
Guest
 
Posts: n/a
Default Re: Reports, filters and crosstabs

Oh, and if you're filtering a crosstab query using parameters (e.g.
referencing controls on a form), be sure to declare those parameters
explicitly using the parameters dialog (Query - Parameters).


"Cassie Pennington" <cassie.dowling@btinternet.com> wrote in message
news:473882f8.0409191032.447cabf2@posting.google.c om...[color=blue]
> I am using VBA to determine which query sits behind a report,
> depending upon the preferred sort order. This has worked perfectly
> for ordinary select queries behind reports, but it seems to be
> struggling with crosstab reports. It presents a "jet engine" error.
> Do you know if this is an issue, or is there a better way of doing
> this?
>
> Thanks in anticipation.
>
> Cassie[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.