PC Review


Reply
Thread Tools Rate Thread

Change Table Field Format via Code

 
 
Chris Eberhart
Guest
Posts: n/a
 
      7th Jun 2004
I need to change the formatting on a table field using
code. I know the table_name and field_name. I wish to
change the format property for field_name to fixed with no
decimal places.

Thank you in advance for your help.

P.S. Where is a good source for this type of information?
 
Reply With Quote
 
 
 
 
Tim Ferguson
Guest
Posts: n/a
 
      7th Jun 2004
"Chris Eberhart" <(E-Mail Removed)> wrote in
news:197e401c44cd4$1c86a3a0$(E-Mail Removed):

> I wish to
> change the format property for field_name to fixed with no
> decimal places.


These are display properties, so you can change them on the form:

Forms!SomeForm!txtControlName.Format = "0"

Hope that helps


Tim F


 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      7th Jun 2004
On Mon, 7 Jun 2004 14:12:16 -0700, "Chris Eberhart"
<(E-Mail Removed)> wrote:

>I need to change the formatting on a table field using
>code. I know the table_name and field_name. I wish to
>change the format property for field_name to fixed with no
>decimal places.
>
>Thank you in advance for your help.
>
>P.S. Where is a good source for this type of information?


Ummm... why do you need to do this? Users should generally never see a
table datasheet, and you can set the Format property of a Form or
Report control as needed; the format of the table field is (I admit)
the default, but it's easily overridden.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Field Code : get bookmark (text) without table format Jess Microsoft Word Document Management 5 29th May 2010 05:01 AM
Change field format in a table Help Eliminate Auto Theft Microsoft Access 4 17th Jul 2009 04:24 PM
code to detect change in table field value Rasta Microsoft Access 1 5th Sep 2008 07:54 PM
Change Field Size in BE table via Code =?Utf-8?B?R2lic29u?= Microsoft Access Form Coding 4 6th Jan 2006 11:38 PM
Change datatype table field in code =?Utf-8?B?TWFyY28=?= Microsoft Access Form Coding 1 14th Jan 2005 11:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:05 AM.