473,386 Members | 1,795 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,386 software developers and data experts.

A2002: Calculated control in subreport not printing

I have a subreport that displays the addresses of suppliers. Its
source table has fields for the name, street, city/state, and ZIP code
for easier querying. However, for display purposes, I put the
city/state and ZIP together and put that value in txtCityAndState.
When I run the report, the print preview looks perfect. When I print
it, though, txtCityAndState is blank. I've tried putting the same
code I used to fill this textbox in the different events of both the
main and sub reports without success. I've done things like this
before on main reports, so it must be something special with
subreports? Any help is greatly appreciated.

-Josh
Nov 12 '05 #1
2 1391
There are some differences between main reports and reports embedded in
Subreport Controls, but without some specifics, it would be difficult to
guess whether, or which, one of those is involved.

It would be good to create this as a Calculated Field in the Query on which
the Report embedded in the Subreport Control is based, and then use that as
the ControlSource of a TextBox. That would seem to me to be less likely to
run afoul of differences.

Larry Linson
Microroft Access MVP
"Josh Nikle" <jn********@yahoo.com> wrote in message
news:20**************************@posting.google.c om...
I have a subreport that displays the addresses of suppliers. Its
source table has fields for the name, street, city/state, and ZIP code
for easier querying. However, for display purposes, I put the
city/state and ZIP together and put that value in txtCityAndState.
When I run the report, the print preview looks perfect. When I print
it, though, txtCityAndState is blank. I've tried putting the same
code I used to fill this textbox in the different events of both the
main and sub reports without success. I've done things like this
before on main reports, so it must be something special with
subreports? Any help is greatly appreciated.

-Josh

Nov 12 '05 #2
Thanks, Larry. That solution worked just fine.

-Josh
"Larry Linson" <bo*****@localhost.not> wrote in message news:<O9***************@nwrddc02.gnilink.net>...
There are some differences between main reports and reports embedded in
Subreport Controls, but without some specifics, it would be difficult to
guess whether, or which, one of those is involved.

It would be good to create this as a Calculated Field in the Query on which
the Report embedded in the Subreport Control is based, and then use that as
the ControlSource of a TextBox. That would seem to me to be less likely to
run afoul of differences.

Larry Linson
Microroft Access MVP
"Josh Nikle" <jn********@yahoo.com> wrote in message
news:20**************************@posting.google.c om...
I have a subreport that displays the addresses of suppliers. Its
source table has fields for the name, street, city/state, and ZIP code
for easier querying. However, for display purposes, I put the
city/state and ZIP together and put that value in txtCityAndState.
When I run the report, the print preview looks perfect. When I print
it, though, txtCityAndState is blank. I've tried putting the same
code I used to fill this textbox in the different events of both the
main and sub reports without success. I've done things like this
before on main reports, so it must be something special with
subreports? Any help is greatly appreciated.

-Josh

Nov 12 '05 #3

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

Similar topics

5
by: Steve | last post by:
I have a report of about 50 pages. The report consists of two subreports, SRptA and SRptB, in the Detail section of the main report (unbound) and each subreport produces about half the pages. I...
8
by: dixie | last post by:
I have a report with a subreport. The source object for this subreport varies according to the value of a field in a table. I am trying to programmatically set the object source for the subreport...
1
by: Ellen Manning | last post by:
The main report shows all medical conferences for a resident by year, by month. A resident can attend many of the same conferences in a year. In the year footer, I have a subreport that summarizes...
7
by: Ellen Manning | last post by:
I've got an A2K report showing students and their costs. Student info is in the main report and costs are in a subreport for each student. The user inputs the program desired then only those...
1
by: Melissa | last post by:
Sorry if this becomes a repeat! I am having trouble with my newsreader and don't know if this got posted yeserday or not or if anyone responded. A form in my database has multiple subforms. If...
5
by: Tom | last post by:
I have a subreport that can contain one or two pictures per page. The subreport is similar to an appendix to the main report. The recordsource contains a field "IncludeInReport" (Yes/No) for each...
8
by: | last post by:
hi, i have a form on which a user can choose specific criteria such as dates etc, in order to filter the report that is called from the form. i do this by using the Where section of the...
0
by: Mbishr | last post by:
i add a print button to print the report and the on demand Subreport crystal i try this code in the button crReportDocumentForex.PrintToPrinter(1, False, 1, 99) but it print the main report...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.