Solved

Control source keeps changing

Posted on 2006-10-25
6
309 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

730 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