Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Format of unbound text box
Stacey Bagaglio 
     
2 years ago
I have an unbound text box on my Main Menu Form that is updated with the Form Load event. I use a Public Function that retrieves a "VersionNbr" from the "Version" table. The problem is, we are on version 24.10 but the Main Menu Form displays it as 24.1. I have tried every way I can think of to change the format of the number and it does not work! After every which way/combo I currently have the Version table "VersionNbr" Data Type format set as Number. The Field size: Double, the Format: Fixed and Decimal Places: 2. The unbound text box Format is Fixed and 2 decimal places also but still will not display correctly. If I skip 24.10 and go to 24.11 it displays 2 digits after the decimal and I see 24.11. I'm stubborn and don't want to do that. Any other way to force the number format in my text box?
Stacey Bagaglio OP  @Reply  
     
2 years ago

Stacey Bagaglio OP  @Reply  
     
2 years ago

Stacey Bagaglio OP  @Reply  
     
2 years ago

Stacey Bagaglio OP  @Reply  
     
2 years ago

Adam Schwanz  @Reply  
           
2 years ago
If it's just for display, convert it to a string.
Richard Rost  @Reply  
          
2 years ago
Instead of fixed try 00.00
Stacey Bagaglio OP  @Reply  
     
2 years ago
00.00 doesn't work. Tried in both the text box field property and the table. I really didn't want to go to a string but I guess its either string or .11 unless anyone else know a fix? Also thinking to delete the text box and create a new one to see if that fixes it?
Adam Schwanz  @Reply  
           
2 years ago
You can also just do MyTextBox = Format(GetCurrentVersionNbr(), "Fixed")
Stacey Bagaglio OP  @Reply  
     
2 years ago
Adam!!!!! OMG it worked! I was about to ask is there a way to do it in the Code...
Stacey Bagaglio OP  @Reply  
     
2 years ago

Kevin Robertson  @Reply  
          
2 years ago
Try this:

GetCurrentVersionNbr = Format(rs("VersionNbr"), "00.00")
Stacey Bagaglio OP  @Reply  
     
2 years ago
Kevin! Yours works too! Thank you all!!!

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 7/31/2026 11:10:17 PM. PLT: 1s