1bf4a Report - Stored Procedure - Grouping
Sign Up |  Live StatsLive Stats    Articles 37,330| Comments 177,229| Members 19,409, Newest tanu sandhu| Online 491
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Report - Stored Procedure - Grouping

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Stored procedure/Macro... JOM Information Technology 1 28-Jul-2006 08:14 AM
Grouping in Pivot Tables? Jim Information Technology 0 28-Jul-2006 08:14 AM
calculated grouping yaniv d Information Technology 0 28-Jul-2006 08:13 AM
SQL stored procedure in Access output to Excel wnfisba Information Technology 7 28-Jul-2006 08:08 AM
grouping dates with a query Jay Information Technology 9 11-Nov-2005 20:08 PM


Tags
report, stored, procedure, grouping
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:14 AM
ZRexRider's Avatar ZRexRider
Guest
 
Posts: n/a
   
   
Report - Stored Procedure - Grouping

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi,

I have an MS-Access ADP connecto SQL Server. I use a parameter driven
stored procedure that is driven by a form that allows the user to come
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10584-report-stored-procedure-grouping.html
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
up with various filters for pulling data. I pass the resulting
recordset to various reports.

Since the stored procedure is generic, it only retrieves a basic data
set. I would like each report to specify grouping and or sorting using
the "Sorting And Grouping" configuration. I was hoping that "Sorting
and Grouping" could be applied to the current RECORDSET of the report.


Am I correct? Should I be able to apply the sorting and grouping to a
recordset that has already been retrieved?

Thanks



Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:14 AM
Douglas J Steele's Avatar Douglas J Steele
Guest
 
Posts: n/a
   
   
Re: Report - Stored Procedure - Grouping

Yes, that's the way it works. The actual sort order of the recordset is
ignored by the report: it only cares about what's specified in the Sorting
and Grouping.

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


"ZRexRider" wrote in message
news:1149081774.297133.29210@g10g2000cwb.googlegro ups.com...
> Hi,
>
> I have an MS-Access ADP connecto SQL Server. I use a parameter driven
> stored procedure that is driven by a form that allows the user to come
> up with various filters for pulling data. I pass the resulting
> recordset to various reports.
>
> Since the stored procedure is generic, it only retrieves a basic data
> set. I would like each report to specify grouping and or sorting using
> the "Sorting And Grouping" configuration. I was hoping that "Sorting
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
> and Grouping" could be applied to the current RECORDSET of the report.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
>
>
> Am I correct? Should I be able to apply the sorting and grouping to a
> recordset that has already been retrieved?
>
> Thanks
>



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:14 AM
BillCo's Avatar BillCo
Guest
 
Posts: n/a
   
   
Re: Report - Stored Procedure - Grouping

sorting and grouping can indeed be applied to a recordset . However,
the sorting/grouping in a report is seperate to the datasource. if you
want to make this work, you will have to somehow open the report in
design mode in the background and make changes to it at run-time, save
the changes and preview/print the report.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
It may be easier to save multiples of the report with different
sorting/grouping options and open whichever is appropriate

ZRexRider wrote:
> Hi,
>
> I have an MS-Access ADP connecto SQL Server. I use a parameter driven
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
> stored procedure that is driven by a form that allows the user to come
> up with various filters for pulling data. I pass the resulting
> recordset to various reports.
>
> Since the stored procedure is generic, it only retrieves a basic data
> set. I would like each report to specify grouping and or sorting using
> the "Sorting And Grouping" configuration. I was hoping that "Sorting
> and Grouping" could be applied to the current RECORDSET of the report.
>
>
> Am I correct? Should I be able to apply the sorting and grouping to a
> recordset that has already been retrieved?
>
> Thanks


Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:14 AM
ZRexRider's Avatar ZRexRider
Guest
 
Posts: n/a
   
   
Re: Report - Stored Procedure - Grouping

Thanks - I thought so. Now I know I have something else to figure out
because when I run my report with a SQL command in the "Record Source"
property of the report I get a nice list of groups with my Sum/counts).
However, if I cut and paste the exact same SQL command into VB module,
execute to a record set and pass the results to the report I get 1 page
with one line"

#Name? 1

The field that should have printed (instead of #Name?) is in the SQL
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
(same SQL as what is embedded in the property) and if I set a
breakpoint in the Report's VBA and print out the
me.Recordset.fields("FieldNameImGroupingOn") it shows that not only
does it exist but it contains data.

If I take grouping out of the scenario altogether and simply create and
pass a recordset the ungrouped data prints.

That's why was thinking that maybe grouping "after the fact" as a no
no.

Thanks for your help


Douglas J Steele wrote:
> Yes, that's the way it works. The actual sort order of the recordset is
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
> ignored by the report: it only cares about what's specified in the Sorting
> and Grouping.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "ZRexRider" wrote in message
> news:1149081774.297133.29210@g10g2000cwb.googlegro ups.com...
> > Hi,
> >
> > I have an MS-Access ADP connecto SQL Server. I use a parameter driven
> > stored procedure that is driven by a form that allows the user to come
> > up with various filters for pulling data. I pass the resulting
> > recordset to various reports.
> >
> > Since the stored procedure is generic, it only retrieves a basic data
> > set. I would like each report to specify grouping and or sorting using
> > the "Sorting And Grouping" configuration. I was hoping that "Sorting
> > and Grouping" could be applied to the current RECORDSET of the report.
> >
> >
> > Am I correct? Should I be able to apply the sorting and grouping to a
> > recordset that has already been retrieved?
> >
> > Thanks
> >


Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:14 AM
ZRexRider's Avatar ZRexRider
Guest
 
Posts: n/a
   
   
Re: Report - Stored Procedure - Grouping

Ugh! Sounds right though. My problem is I don't know what the
recordset looks like until the user fills out a "filter" form and calls
my stored procedure. Soooo.... multiple reports won't help but maybe I
can figure out how to "modify on the fly"

Thanks for your help

BillCo wrote:
> sorting and grouping can indeed be applied to a recordset . However,
> the sorting/grouping in a report is seperate to the datasource. if you
> want to make this work, you will have to somehow open the report in
> design mode in the background and make changes to it at run-time, save
> the changes and preview/print the report.
> It may be easier to save multiples of the report with different
> sorting/grouping options and open whichever is appropriate
>
> ZRexRider wrote:
> > Hi,
> >
> > I have an MS-Access ADP connecto SQL Server. I use a parameter driven
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
> > stored procedure that is driven by a form that allows the user to come
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
> > up with various filters for pulling data. I pass the resulting
> > recordset to various reports.
> >
> > Since the stored procedure is generic, it only retrieves a basic data
> > set. I would like each report to specify grouping and or sorting using
> > the "Sorting And Grouping" configuration. I was hoping that "Sorting
> > and Grouping" could be applied to the current RECORDSET of the report.
> >
> >
> > Am I correct? Should I be able to apply the sorting and grouping to a
> > recordset that has already been retrieved?
> >
> > Thanks


Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:14 AM
dbahooker@hotmail.com's Avatar dbahooker@hotmail.com
Guest
 
Posts: n/a
   
   
Re: Report - Stored Procedure - Grouping

are you guys sure that he is talking about a recordSET and not a
recordSOURCE?




ZRexRider wrote:
> Hi,
>
> I have an MS-Access ADP connecto SQL Server. I use a parameter driven
> stored procedure that is driven by a form that allows the user to come
> up with various filters for pulling data. I pass the resulting
> recordset to various reports.
>
> Since the stored procedure is generic, it only retrieves a basic data
> set. I would like each report to specify grouping and or sorting using
> the "Sorting And Grouping" configuration. I was hoping that "Sorting
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
> and Grouping" could be applied to the current RECORDSET of the report.
>
>
> Am I correct? Should I be able to apply the sorting and grouping to a
> recordset that has already been retrieved?
>
> Thanks


Reply With Quote
  #7 (permalink)  
Old 28-Jul-2006, 08:14 AM
ZRexRider's Avatar ZRexRider
Guest
 
Posts: n/a
   
   
Re: Report - Stored Procedure - Grouping

Thanks - fortunately I was pretty clear about RECORDSET. Gotta go
home and crack some books to figure out what I'm going to do with this
one. ;-)


dbahooker@hotmail.com wrote:
> are you guys sure that he is talking about a recordSET and not a
> recordSOURCE?
>
>
>
>
> ZRexRider wrote:
> > Hi,
> >
> > I have an MS-Access ADP connecto SQL Server. I use a parameter driven
> > stored procedure that is driven by a form that allows the user to come
> > up with various filters for pulling data. I pass the resulting
> > recordset to various reports.
> >
> > Since the stored procedure is generic, it only retrieves a basic data
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
> > set. I would like each report to specify grouping and or sorting using
> > the "Sorting And Grouping" configuration. I was hoping that "Sorting
> > and Grouping" could be applied to the current RECORDSET of the report.
> >
> >
> > Am I correct? Should I be able to apply the sorting and grouping to a
> > recordset that has already been retrieved?
> >
> > Thanks


Reply With Quote
  #8 (permalink)  
Old 28-Jul-2006, 08:14 AM
dbahooker@hotmail.com's Avatar dbahooker@hotmail.com
Guest
 
Posts: n/a
   
   
Re: Report - Stored Procedure - Grouping

I would reccomend staying away from recordset binding; i haven't had
the best stability with that.

there has to be a simple solution.

i mean-- you know that you can pass a filter and a whereclause to the
report via docmd.openReport right??

you sure that won't do the trick for you?
cartesian the crap out of your data so that a simple variable can
filter it back down to the records you want.

please let me know if you go forward with recordsets and it works well.
i just haven't had the best stability with them.

-Aaron


ZRexRider wrote:
> Thanks - fortunately I was pretty clear about RECORDSET. Gotta go
> home and crack some books to figure out what I'm going to do with this
> one. ;-)
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
>
>
> dbahooker@hotmail.com wrote:
> > are you guys sure that he is talking about a recordSET and not a
> > recordSOURCE?
> >
> >
> >
> >
> > ZRexRider wrote:
> > > Hi,
> > >
> > > I have an MS-Access ADP connecto SQL Server. I use a parameter driven
> > > stored procedure that is driven by a form that allows the user to come
> > > up with various filters for pulling data. I pass the resulting
> > > recordset to various reports.
> > >
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
> > > Since the stored procedure is generic, it only retrieves a basic data
> > > set. I would like each report to specify grouping and or sorting using
> > > the "Sorting And Grouping" configuration. I was hoping that "Sorting
> > > and Grouping" could be applied to the current RECORDSET of the report.
> > >
> > >
> > > Am I correct? Should I be able to apply the sorting and grouping to a
> > > recordset that has already been retrieved?
> > >
> > > Thanks


Reply With Quote
  #9 (permalink)  
Old 28-Jul-2006, 08:14 AM
ZRexRider's Avatar ZRexRider
Guest
 
Posts: n/a
   
   
Re: Report - Stored Procedure - Grouping

  Donate Today!  
Thanks,

If I get the recordset working I'll let you know. Gonna give it to the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
end of the day then give up.

Unfortunately I've create a nice dynamic SPROC using COALESCE and CASE.
Turned out nice and is much faster than repeatedly sending SQL to the
DB. I was hoping to use the recordset for the report and just group
it. Once I had that working I had to create 4 or 5 reports that group
or display differently but use the same SPROC.

Believe me though, I've been around long enough to know that if Access
doesn't like something then its a bad thing to force it. I take 3 or 4
backups a day and every now and then I'm damn glad I did!

Thanks


dbahooker@hotmail.com wrote:
> I would reccomend staying away from recordset binding; i haven't had
> the best stability with that.
>
> there has to be a simple solution.
>
> i mean-- you know that you can pass a filter and a whereclause to the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10584
> report via docmd.openReport right??
>
> you sure that won't do the trick for you?
> cartesian the crap out of your data so that a simple variable can
> filter it back down to the records you want.
>
> please let me know if you go forward with recordsets and it works well.
> i just haven't had the best stability with them.
>
> -Aaron
>
>
> ZRexRider wrote:
> > Thanks - fortunately I was pretty clear about RECORDSET. Gotta go
> > home and crack some books to figure out what I'm going to do with this
> > one. ;-)
> >
> >
> > dbahooker@hotmail.com wrote:
> > > are you guys sure that he is talking about a recordSET and not a
> > > recordSOURCE?
> > >
> > >
> > >
> > >
> > > ZRexRider wrote:
> > > > Hi,
> > > >
> > > > I have an MS-Access ADP connecto SQL Server. I use a parameter driven
> > > > stored procedure that is driven by a form that allows the user to come
> > > > up with various filters for pulling data. I pass the resulting
> > > > recordset to various reports.
> > > >
> > > > Since the stored procedure is generic, it only retrieves a basic data
> > > > set. I would like each report to specify grouping and or sorting using
> > > > the "Sorting And Grouping" configuration. I was hoping that "Sorting
> > > > and Grouping" could be applied to the current RECORDSET of the report.
> > > >
> > > >
> > > > Am I correct? Should I be able to apply the sorting and grouping to a
> > > > recordset that has already been retrieved?
> > > >
> > > > Thanks


Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Keeping Amrit Vela
Today 23:38 PM
10 Replies, 831 Views
Do you believe in...
Today 23:37 PM
191 Replies, 3,978 Views
How does Sikhi help you...
Today 22:54 PM
22 Replies, 867 Views
Losing My Religion: Why...
Today 22:18 PM
12 Replies, 270 Views
Request for assistance...
Today 21:53 PM
5 Replies, 43 Views
Man Driving Without...
Today 21:09 PM
1 Replies, 54 Views
Panjabi
By Ishna
Today 17:56 PM
12 Replies, 259 Views
Parkash Guru Amar Das ji...
Today 17:07 PM
3 Replies, 31 Views
Serious challenges to...
Today 16:49 PM
0 Replies, 47 Views
Sikh man fights for his...
Today 16:46 PM
0 Replies, 54 Views
Sikhs Rights Group to...
Today 16:44 PM
0 Replies, 34 Views
Haryana Sikh body bans...
Today 16:39 PM
0 Replies, 35 Views
Health Exercise And...
Today 13:30 PM
0 Replies, 55 Views
SSGS with English...
Today 12:55 PM
9 Replies, 119 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:44 AM
310 Replies, 7,557 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 23:51 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.54559 seconds with 32 queries
0