473,401 Members | 2,127 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,401 software developers and data experts.

How can I access form variables from a report

23
Hi,

I have been using access 2000. I have created a form where I put labels and a button to display report. I have populated the labels of that form by using so many tables and calculations.
The problem here is, I need to display those label values(captions) into my report (with out repeating all the calculations).
Is it possible to get those label controls from the report
(like forms!frmname!label.caption) ??
Can anybody help please.......

Thanks in advance
Jul 20 '07 #1
2 4832
hyperpau
184 Expert 100+
Hi,

I have been using access 2000. I have created a form where I put labels and a button to display report. I have populated the labels of that form by using so many tables and calculations.
The problem here is, I need to display those label values(captions) into my report (with out repeating all the calculations).
Is it possible to get those label controls from the report
(like forms!frmname!label.caption) ??
Can anybody help please.......

Thanks in advance
I am not sure you can do that.

You should have added those captions right at the time you created your tables. in this case, if you bind a form or a report to the table, those captions should automatically appear so you no longer have to edit them.

does this make sense to you? i dont know what you mean by calculations since you are talking about labels. and labels are just captions. they cannot have calculated data.
Jul 20 '07 #2
ADezii
8,834 Expert 8TB
Hi,

I have been using access 2000. I have created a form where I put labels and a button to display report. I have populated the labels of that form by using so many tables and calculations.
The problem here is, I need to display those label values(captions) into my report (with out repeating all the calculations).
Is it possible to get those label controls from the report
(like forms!frmname!label.caption) ??
Can anybody help please.......

Thanks in advance
You can access Label Captions on an Open Form from a Report. The following code in a Report's Activate() Event will concatenate (add) the Captions from Label1 and Label2 on Form1, then place the combined Captions in a Label (lblHeader) in the Report's Header:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Report_Activate()
  2.   Me![lblHeader].Caption = Forms!Form1![Label1].Caption & ", " & Forms!Form1![Label2].Caption
  3. End Sub
Jul 20 '07 #3

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

Similar topics

2
by: Xenophobe | last post by:
I have a popup window (required by the client) containing a form and would like to prevent users from accessing it directly. They are instead required to access the page via a hyperlink on another...
20
by: John | last post by:
Hi, I've recently upgraded from Access 97 to Access 2002 & the performance basically stinks. I have tried the following items listed below but it has only had a minor impact: 1) Upgraded Jet...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
6
by: Bob Alston | last post by:
I am looking for Access reporting add-in that would be easy to use by end users. My key focus is on selection criteria. I am very happy with the Access report writer capabilities. As far as...
4
by: syversda | last post by:
I have a report that runs a bunch of code to populate variables and then those variables are used as the control source in my report fields. for example var1 gets # of records in a table I...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
0
by: Tony | last post by:
I am continuing to develop an Access 2007 application which was originally converted from Access 2003. In Access 2003 I was able to disable the Access Close button in the top righthand corner of...
5
by: Tony | last post by:
I am continuing to develop an Access 2007 application which was originally converted from Access 2003. In Access 2003 I was able to disable the Access Close button in the top righthand corner of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.