473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

subreport control reference problem



I am trying to manipulate a textbox display value of subreport from main
report's detail print() event.
The goal is this, if there is no record from database, replace the blank
space from textbox with message " No record found ".

I found the exact expression to reference my subreport textbox value
from main report, but when I tried to use IsNull() and Nz() function to
distinguish between blank and non-blank value, surprising it did not
work.

When there is no record in sub-report, the textbox's value is " /<you
entered an expression that has no value/> " in the watch window in debug
mode. I could not find a way around this.

Any expert?

Sincerely

Feng

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #1
1 2189
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The value in the TextBox may really be an empty string. Try:

If Len(Trim$(Me!subReport!TextBox)) = 0 Then
... whatever you do
End IF

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQlw/rIechKqOuFEgEQIzjgCfcRHO+T37tbIWyPXSQ7rX8B8lu3cAn1 O8
4uGugakZAw5kv5sueL1XkmxR
=lWmr
-----END PGP SIGNATURE-----
Frank wrote:

I am trying to manipulate a textbox display value of subreport from main
report's detail print() event.
The goal is this, if there is no record from database, replace the blank
space from textbox with message " No record found ".

I found the exact expression to reference my subreport textbox value
from main report, but when I tried to use IsNull() and Nz() function to
distinguish between blank and non-blank value, surprising it did not
work.

When there is no record in sub-report, the textbox's value is " /<you
entered an expression that has no value/> " in the watch window in debug
mode. I could not find a way around this.

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Downstreamer | last post by:
Design is as follows: A form for the user to input criteria to be used as the where part of the report's recordsource. This includes a multiselect list box as part of the criteria selection. ...
2
by: Keith Wilby | last post by:
A97 I have a report/sub-report setup and for some records in the main report, the sub-report is blank. I want to set the height of the sub-report to zero where it is blank. I've set all the "Can...
1
by: Kirsty Ryder | last post by:
Hi, I have a Report with a subreport, and I want to assign a value to the control source of a control on the subreport depending on the value given by the user in a separate form. Based on...
1
by: Marie | last post by:
How do you display a total from a subreport on the main report. If it makes a difference, the total is a total of a calculated field (Qty * Price). Does the total on the subreport go in the...
4
by: Stephen Poley | last post by:
I have a pair of tables (Applicaties en Releases) in a 1-to-N relation. I created and tested a report based on Applicaties. I then added a subreport based on Releases using the wizard. This...
9
by: Alan | last post by:
Hmmm, I'm not too good with the syntax of referencing a subreport. I have frmInvoice which has the invoice details (e.g. ProductCode, ProductCost etc) in the subform frmInvoiceDetails. I'm trying...
4
by: MLH | last post by:
I have a report and on it, a subreport control Main Report Name: rptInvoiceMain Sub Report Name: rptInvoiceSubReport SubReport Control Name: rptInvoiceSubReportCtl The...
17
by: =?Utf-8?B?SGVyYg==?= | last post by:
I have created a report and subreport in VB/ASP.NET. The report works fine but the subreport will not display. The subreport, when displayed as a standalone report, works fine. Any help I can...
11
by: Simon | last post by:
Dear reader, The syntax for the VBA code to change the RowSource of a Master Report is: Me.RowSource = "TableOrQueryName"
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.