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

Access Control Ignoring Format Assignment

I am working in Access 2000. I have a form with a tab control with several pages, each one containing a form. The textboxes on these forms are not allowing me to set a format. When I click the Format in the properties there are no options. I tried typing in an appropriate format "Standard", and it does not work. I also tried forcing the format in the Control source property - =Format([Jan],"#,###") that did not work. Then I tried setting the format property using VB during the form load event, that also did not work. The formatting works fine in the footers where I have totals. Any idea? I am at a loss. Thanks,
Donna
Jan 3 '07 #1
5 1966
MMcCarthy
14,534 Expert Mod 8TB
I am working in Access 2000. I have a form with a tab control with several pages, each one containing a form. The textboxes on these forms are not allowing me to set a format. When I click the Format in the properties there are no options. I tried typing in an appropriate format "Standard", and it does not work. I also tried forcing the format in the Control source property - =Format([Jan],"#,###") that did not work. Then I tried setting the format property using VB during the form load event, that also did not work. The formatting works fine in the footers where I have totals. Any idea? I am at a loss. Thanks,
Donna
Assuming these are unbound text boxes you will need to set the datatype to number first before trying to set the format property.

Mary
Jan 4 '07 #2
Assuming these are unbound text boxes you will need to set the datatype to number first before trying to set the format property.

Mary
The textboxes are bound, and the datatypes are numbers that go through a series of queries before ending up in my form, some of which are crosstabs...maybe that has something to do with it? I will check.
Jan 4 '07 #3
The textboxes are bound, and the datatypes are numbers that go through a series of queries before ending up in my form, some of which are crosstabs...maybe that has something to do with it? I will check.
OK, looks like access stops recognizing the datatype once the data goes through an nz(). Any way to work around?
Jan 4 '07 #4
MMcCarthy
14,534 Expert Mod 8TB
OK, looks like access stops recognizing the datatype once the data goes through an nz(). Any way to work around?
Are you putting in 0 for the default value of the nz().

Post the code for this and we'll have a look.

Mary
Jan 4 '07 #5
Are you putting in 0 for the default value of the nz().

Post the code for this and we'll have a look.

Mary
Thanks Mary, but it looks like I found a fix...if I cast all as doubles Cdbl(nz()) it seems to work. Only problem is I have 16 queries X 12 months to edit. Actually that leads me to another question, I will post separately. Thanks again for your help.
Jan 4 '07 #6

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

Similar topics

17
by: chicha | last post by:
Hey people, I have to convert MS Access 2000 database into mysql database, the whole thing being part of this project I'm doing for one of my faculty classes. My professor somehow presumed I...
166
by: Graham | last post by:
This has to do with class variables and instances variables. Given the following: <code> class _class: var = 0 #rest of the class
13
by: MLH | last post by:
I have a form with two controls: !! - combo box !! - text box A button on the form tries to run this SQL when clicked... INSERT INTO BodyMsgsSent (ToWhom, BodyText) SELECT DISTINCTROW !! AS...
8
by: pieterc | last post by:
He everbody, I came across a positng dated 2001 about the above. I copied the code Hans De Schrijver posted at that time but I need more help. I need to create a different reports for each...
9
by: Colin McGuire | last post by:
Hi, I have an report in Microsoft Access and it displays everything in the table. One column called "DECISION" in the table has either 1,2, or 3 in it. On my report it displays 1, 2, or 3. I want...
8
by: Jerry | last post by:
I have an off-the-shelf app that uses an Access database as its backend. One of the tables contains a field with an "OLE Object" datatype. I'm writing some reports against this database, and I...
70
by: lgbjr | last post by:
Hello All, I've been developing a VB.NET app that requires the use of a DB. Up to now, I've been using Access. It's a bit slow, but everything works. I'm at a point now where I need to decide if...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
9
by: O | last post by:
I need to do some lookups and updates on some legacy Access 2.0 files (they've from another vendor and I'm not in a position to update them). I was successful using VB6, but I've moved on to VS...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.