Write text programatically

message from Isaack Rasmussen on 17 May 2004
Hello,

I'm trying to make a report that will output data from Database
tables. Doing it linearly is easy enough.
But I want more control over the grouping and use conditional
statements in the loop.
I have not been able to figure out how to do this in the Detail
segment of a Report. So I then tried to use VBScript, but using the
function "print" doesn't work as specified in the help files.

I'm running on Access 97 and the error I actually get is,
Runtime error: 2158
Application-defined or Object-defined Error

And the line is my,
Me.Print ("Testing myself")

Me seems to work fine, but not in combination with Print.

I'm sure this has been asked before, but I have not been able to find
anything as my keywords appears to be too generic.

Thanks in advance,
 
Douglas J. Steele replied to Isaack Rasmussen on 17 May 2004
only the Debug object does (Debug.Print writes to the debug window)
 
Isaack Rasmussen replied to Douglas J. Steele on 21 May 2004
Hello Douglas,

Thanks for the reply. So does it mean that there's no way to
programatically write text on the report?

Isaack

"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message news:<OSkVqaAPEHA.3452@TK2MSFTNGP10.phx.gbl>...
 
Douglas J. Steele replied to Isaack Rasmussen on 21 May 2004
No, that's not the case. You can, for example, put a text box on your report
Me!txtScratchpad = "Testing myself"
 
Mike Painter replied to Douglas J. Steele on 22 May 2004
I'd suggest a copy of Access Developers Handbook. It has a lot of
information about reports that includes most if not all of what has been
requested.
www.bookpool.com has always had the best price.
 

Archived message: Write text programatically (MS Access Error Message)