A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to refer report's recordset ?



 
 
Thread Tools Display Modes
  #1  
Old October 3rd, 2004, 07:41 PM
Malee
external usenet poster
 
Posts: n/a
Default How to refer report's recordset ?

I create a crosstab query and use it as my report recordsource. Because I
can not predict which column (return from query) will be exist, So I think I
will create enough unbound text boxes in report to display return columns.
Afer try, I found problem that I can not refer to those columns in term
Me.Recordset!ExpectedColumnName within Detail_Print event. Actually
Recordset is not available. How to solve this problem ?

TIA
Malee


  #2  
Old October 4th, 2004, 04:28 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default

There are several examples of crosstab reports at
http://www.invisibleinc.com/divFiles.cfm?divDivID=4. If your columns are
date intervals then there is a much easier method.

--
Duane Hookom
MS Access MVP
--

"Malee" wrote in message
...
I create a crosstab query and use it as my report recordsource. Because I
can not predict which column (return from query) will be exist, So I think

I
will create enough unbound text boxes in report to display return columns.
Afer try, I found problem that I can not refer to those columns in term
Me.Recordset!ExpectedColumnName within Detail_Print event. Actually
Recordset is not available. How to solve this problem ?

TIA
Malee




  #3  
Old October 4th, 2004, 05:24 PM
Marshall Barton
external usenet poster
 
Posts: n/a
Default

Malee wrote:

I create a crosstab query and use it as my report recordsource. Because I
can not predict which column (return from query) will be exist, So I think I
will create enough unbound text boxes in report to display return columns.
Afer try, I found problem that I can not refer to those columns in term
Me.Recordset!ExpectedColumnName within Detail_Print event. Actually
Recordset is not available.



In the versions before the Recordset property was
introduced, I used the ugly and sometimes slow technique of
opening a recordset on the recordsource, which won't work
with some types of filtering:

Set rs = db.OpenRecordset(Me.RecordSource)

--
Marsh
MVP [MS Access]
 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shifting Weeks for Quarterly Reports setoFairfax General Discussion 1 September 8th, 2004 05:43 PM
list boxes in reports Mia_placidus Setting Up & Running Reports 1 August 1st, 2004 10:35 PM
limiting access to reports JMorrell General Discussion 3 July 28th, 2004 03:52 PM
Need help w/ reports Tom Setting Up & Running Reports 0 June 25th, 2004 05:59 PM
ACCESS Reports Steve Setting Up & Running Reports 2 June 7th, 2004 02:58 PM


All times are GMT +1. The time now is 09:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.