Solved

Control source keeps changing

Posted on 2006-10-25
6
304 Views
Last Modified: 2008-03-06
Hi
Have a problem that I have not experienced before.
There are five controls on a report; their names and datasources are

text117     =Report!OtherCrosstab!text69
text113     =Report![Comms Crosstab]!text61
text122     =Reports![Summary Crosstab]!BasisOfCrosstabsRequirements_Crosstab.Report!Text71
text128     =Reports![Summary Crosstab]![CrosstabsDecisionAudit subreport].Report!Text71

text 124    =1-([text117]+[text113]+[text122]+[text128])

These controls work fine, all values returned correctly.

Now here's the weird thing. If I make any kind of change to text124, even a change as small as moving the control position a pixel or two, the control source for text122 and text128 changes to

=Reports![Report]!BasisOfCrosstabsRequirements_Crosstab.Report!Text71
=Reports![Report]![CrosstabsDecisionAudit subreport].Report!Text71

and text122, text128 and text 124 then return errors. Then have to reset the source for text122 and text128 and everything is ok again. But it is really bugging. Cannot make any changes without the control sources changing then have to reset them.

Any ideas why this is happening?
Thanks
0
Comment
Question by:ohgee
6 Comments
 
LVL 65

Expert Comment

by:Jim Horn
ID: 17804818
Please explain why you are using one report to be the data source of another report.
Reports should only get data from tables or queries, and in some cases open forms.
0
 

Author Comment

by:ohgee
ID: 17804982
Difficult to explain why but this is the way I developed it and cannot change it now.
A few controls on the main report (visible = false) reflect control values on four subreports and then another control on the main report sums them. Is this a problem?
0
 
LVL 4

Expert Comment

by:jcampanali
ID: 17805096
My guess is that the basis for the initial report is a Crosstab Query.  Unless you force the column names in the Query Properties, the control source (actually, the field names of the Crosstab) for the report does not exist until the query is run.  So, the way Access is passing through the information, you are running the second report and it is trying to format/print the report before the control source is established by running the crosstab query for the initial report in the background.
0
 

Author Comment

by:ohgee
ID: 17805187
I have figured it out, had my references wrong; dropped the   reports!..... from the reference.
Now reads

text 122       =BasisOfCrosstabsRequirements_Crosstab.Report!Text71
text 128       =[CrosstabsDecisionAudit subreport].[Report]![Text71]

thanks for trying to help; appreciate it !!
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 17849384
Closed, 75 points refunded.
DarthMod
Community Support Moderator
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question