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 Developers    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Text Box Control Change Format on the Fly
John Schreiber 
      
10 months ago
In my DB I have a Table & Form named ExpensesT. It has an autonumber and a foreign key. On the form it has these fields: Expense and Amount. I also have a Combo Box that list the types of expenses i.e. Flight, Airport Parking, Mileage, etc. I use the combo box to fill the Expense Field. My issue is the Amount Field. Most of the expense types are Currency. But the Mileage field is a number. How can I set the format of the Amount field to show currency or a number. Is there some VB I can use to check the Combo box value after it is selected and change the blank amount box to the correct number or Currency. Such as: If Combo value = Mileage, Amount.format = Number Elese Amount.Format = Currency. I know the syntax is hokey, but you get the idea.
Adam Schwanz  @Reply  
           
10 months ago
Is this a single form? It sounds like a continuous form, like a list of expenses.

If it's single you can do it easily with the after update. If it's continuous you're going to have problems.
John Schreiber OP  @Reply  
      
10 months ago
It is continuous - OOPS
Kevin Yip  @Reply  
     
10 months ago
I would add a text field in your table that stores the currency format for each row.  See picture below.  A continuous form can only use one display format for an entire column, as you know.  So, if you want row-specific formatting in a column, you need store row-specific info into the table.
Kevin Yip  @Reply  
     
10 months ago

Kevin Yip  @Reply  
     
10 months ago
I meant "Currency format" in the picture above.  Stupid typo.
John Schreiber OP  @Reply  
      
10 months ago
No problem, I don't think, will do.
Thanks Kevin

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

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:31 PM. PLT: 1s