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

Control format property in OnFormat event

Hi,
I am going round in circles...
I am trying to produce a report based upon the information gathered
into a temp table.

Each column (stored as a text field) in the table holds weekly
information but each row may contain different information - ie.,
currency, text, percentages.

I have added an extra field to determine the format type.

I can control the backcolour and forecolour of the information using
the OnFormat event however, the next stage is to present this
information with the correct formatting.

As I have mentioned earlier, all weekly data is stored as text.

I can set the controls' ControlSource
=iif([FormatTypeID] = 5, Format([200630],"Currency",[200630])
This works fine on the property page - however if I try to set this at
runtime in the Detail_OnFormat event - obviously, I can not as it wont
allow this property to change at this time.

I have also tried to use the FORMAT property
eg., txtWeek30.Format = "Currency"

and

txtWeek30 = Format(txt30,"Currency")

The latter produces an error, while setting the format property seems
not to have any effect...

Eventual report layout....
Title Week 29 Week 30 Week 31
Invoiced 11 2 31
Invoiced Value £150 £1290 £45000
Employees Present 98% 100% 85%
Happy Clients R A G
I want to have control of the formatting of the week number controls...
Any help appreciated....

Nov 13 '05 #1
1 2975
I guess that I could format the information and save it back to the
temp table - and just present this information as it is a text field!

Is there an easier way?

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike Turco | last post by:
I have a large report that is basically a phonebook. I need to keep track of which person is on which page in order to create an index. So, as suggested in an earlier thread, I am using the...
3
by: kmacon | last post by:
I have a form that contains a command button. The command button's OnClick event builds a report using the CreateReport and CreateReportControl functions and then opens the main report. I set...
1
by: L.M. via AccessMonster.com | last post by:
I am using MS Access 2000. I have created a table of contents for a report, and I am updating the pages in the OnFormat Event (I don't want to do it on the OnPrint because they may be viewing it...
4
by: Remi Hugnon | last post by:
Hi, I want to build an expandable treeview. I saw some code on VB but I know only C# I plan for my class that each nodes has its own id (using span for example). Into a single aspx page...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
8
by: David Lozzi | last post by:
Howdy, I have a user control that is a report to display data. On the page the control is inserted in, I have filter options to filter the report. When I try to do something like this, nothing...
14
by: MLH | last post by:
I use A97. I've gotten used to reading values from textbox controls on forms, I've come to rely on it pretty heavily. My habit spills over into reports. I'm uncertain whether I can reliably read...
4
by: Karl | last post by:
How do you set the width of a control in the detail section of a report using the On Format event for the detail section?
6
by: MLH | last post by:
I have a small bitmap graphic on a report. I would like to set it's Visible property to True whe the value of a certain field on the report is True. Can I do that? I have tried in the OnFormat...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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.