Solved

Change format of form field control source

Posted on 2014-11-21
3
198 Views
Last Modified: 2014-11-21
I have this in the control source of a field on a form.

=[txtActualNeededPanelQty] & " Panels," & " Each " & [txtEachPanelWidthInInches] & " Inches in Width, " & [txtHeightInFeet] & " Feet in Height"

But the result, for example, is giving me:

9 Panels, Each 46.6666666666667 Inches in Width, 8 Feet in Height

I want the "46.6666666666667 " part of it to read "46.7" (three decimals rounded up) so the final result will be:

9 Panels, Each 46.667 Inches in Width, 8 Feet in Height

How do I change the control source to accomplish this?
0
Comment
Question by:SteveL13
  • 2
3 Comments
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 40457946
That will be:

=[txtActualNeededPanelQty] & " Panels," & " Each " & Format([txtEachPanelWidthInInches], "0.000") & " Inches in Width, " & [txtHeightInFeet] & " Feet in Height"

/gustav
0
 

Author Comment

by:SteveL13
ID: 40458097
Nice.  Thanks.
0
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 40458215
You are welcome!

/gustav
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now