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

Controls on reports

JustJim
407 Expert 256MB
Hi,

When does one have the ability to programatically change controls on a report?

This is related to another thread but is annoying me on other reports also.

Early in the Event Chain the controls aren't available and I get "Can't assign a value" or "Expression has no value" errors. This happens with code in the On Open event

Later, I can't change values or controlsources because the report is getting ready to print or preview. This happens with the On Page event (which I expected) but also sometimes on the On Activate event.

Thanks

Jim
Oct 17 '07 #1
2 1231
nico5038
3,080 Expert 2GB
I normally use the OnFormat event when dealing with variable control settings.
Best however not to "play" too much with the controls, but arrange your data (query) in a way that these manipulations aren't necessary.

Nic;o)
Oct 17 '07 #2
JustJim
407 Expert 256MB
I normally use the OnFormat event when dealing with variable control settings.
Ah yes, OnFormat of the report's sections - didn't think of that one. Thanks.

Best however not to "play" too much with the controls, but arrange your data (query) in a way that these manipulations aren't necessary.

Nic;o)
Chance would be a fine thing! One day when I get an assignment which doesn't involve fixing somebody else's mangled database....... (see related whinges here)

Jim
Oct 17 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Roger | last post by:
I am looking at buying VB.net standard edition (109 US$), does anyone have any information of the controls that are included, would it have 'at least' the same control as VB5 Enterprise edition....
1
by: Stinky Pete | last post by:
Hi, I've got a sub report that has been set to print down then across as the data is sorted in date order. This sub report displays and prints as per my design when dealt with as a stand alone...
1
by: longtim | last post by:
I have been having endless difficulty creating reports/queries that set any relevent parameters from controls in forms. I am creating an application under access 2003 but will target access...
8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
9
by: Tony Williams | last post by:
I have two tables 1.tblmonth which holds two fields txtmonth and txtqtrlabel and 2. tblmain which holds a number of fields but in particular a field called txtqtrlabel2. The two tables are linked...
3
by: Sheldon | last post by:
In versions of VB prior to .net, I was able to create in code an array of controls, such as for i = 1 to 10 Load Me.lblTest(i) Me.lblTest(i).top = me.lblTest(i-1).top - me.lblTest(i-1).height...
2
by: CharlesA | last post by:
Hi folks, I'm using ASP.net with Framework vs 1.1 I'm inheriting from a custom rolled master page class that is just that a class that inherits from web.ui.page but it has no designer associated...
1
by: cb | last post by:
I've built a linked database with a series of reports that has a control which contains a field divided by the sum of a subreport field. This calculated control works on my home computer and on a...
7
by: kev | last post by:
Hi folks, Hope you guys can help. I have a form"frmSafetyLevel1" in which users will enter data and once they submit, the results will be displayed on "frmSL1Registration". My problem here is i...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.