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 / Queries / May 2006

Tip: Looking for answers? Try searching our database.

Currency to text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pdehner - 26 May 2006 15:41 GMT
I have a currency field (must stay as cacluations are performed) but I need a
query to export the file to another system so it must be a text file and must
have leading zeros. Example: I have a curenncy field $156.10 should after
query look like 0015610  (7 digit field).  I have tried format I have tried
Str$ - I can't get the combination I am looking for.  Any assistance would be
greatly appreciated.
KARL DEWEY - 26 May 2006 16:19 GMT
Open the query in design view.  Highlight the output field by clicking on the
top of the grid field.  Click on menu VIEW Properties.  In format enter
0000000 and that should do it.

> I have a currency field (must stay as cacluations are performed) but I need a
> query to export the file to another system so it must be a text file and must
> have leading zeros. Example: I have a curenncy field $156.10 should after
> query look like 0015610  (7 digit field).  I have tried format I have tried
> Str$ - I can't get the combination I am looking for.  Any assistance would be
> greatly appreciated.
John Spencer - 26 May 2006 16:42 GMT
I would try
Format(SomeField *100,"0000000")
or if there is the possibility that the field would have numbers like
$156.1057 and I wanted to eliminate rounding I might use
Format(Int(SomeField * 100),"0000000")

>I have a currency field (must stay as cacluations are performed) but I need
>a
[quoted text clipped - 6 lines]
> be
> greatly appreciated.
pdehner - 26 May 2006 17:07 GMT
Works - Great
Thanks

> I would try
> Format(SomeField *100,"0000000")
[quoted text clipped - 12 lines]
> > be
> > greatly appreciated.
 
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.