Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Microsoft: Access Reports FAQ

How To

Change the format of text box programmatically by randysmid
Posted: 30 Oct 02 (Edited 23 Oct 03)

Access 2000 -
Did you know that you can intentionally change the format of a text box on the report, as it is printing?

Here is an example:

If txtNumber > 1000 Then
  Me![txtNumber].Format = "Currency"
End If

If you wish to have decimals only appear when the number actually includes them, set the Decimal format to Auto.

The other types of formats include:
Standard  e.g., 1,234.56
Fixed   e.g.,   1234.56
Percent   e.g.,  100%
Currency   e.g.,  $1,234.56

Of course, there are more formats than this available.

Feedback, comments?  
Randy Smith, MCP

Back to Microsoft: Access Reports FAQ Index
Back to Microsoft: Access Reports Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close