Solved

Control source keeps changing

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

911 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

23 Experts available now in Live!

Get 1:1 Help Now