Solved

Control source keeps changing

Posted on 2006-10-25
6
272 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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

746 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now