Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / May 2008

Tip: Looking for answers? Try searching our database.

format column result

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
redFred - 30 May 2008 17:35 GMT
Please help!

In the afterupdate event of a combo box I set an unbound control to the
value in column 2.

       Me.txtCRAmtAdjusted = Me.cboClient.Column(2)

The control txtCRAmtAdjusted is unbound.

It's format is set in properties to Standard, 2 decimal.  

However, the display is always 0 decimals.  

BTW, the format is 2 decimal places in the combo box drop-down list.

How can I get this corrected?

Thanks in advance,
Signature

redFred

Ken Sheridan - 30 May 2008 18:13 GMT
If you want to include thousands separators:

   Me.txtCRAmtAdjusted = Format(Me.cboClient.Column(2),"#,##0.00")

If not:

   Me.txtCRAmtAdjusted = Format(Me.cboClient.Column(2),"0.00")

BTW if you do include thousand separators and then apply an arithmetical
operation to the value the result will not include thousands operators, so
would itself need to be formatted to do so.

Ken Sheridan
Stafford, England

> Please help!
>
[quoted text clipped - 14 lines]
>
> Thanks in advance,
redFred - 30 May 2008 18:51 GMT
Excellent!  That does the trick.

Thanks for the remedy and for the instruction.

Signature

redFred

> If you want to include thousands separators:
>
[quoted text clipped - 29 lines]
> >
> > Thanks in advance,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.