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 / New Users / May 2005

Tip: Looking for answers? Try searching our database.

Field Type

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JOHN SMITH - 11 May 2005 22:25 GMT
Hi,
Using VBA how can i change a text field to a currencdy field type

Thank,
Al Camp - 11 May 2005 22:53 GMT
1. Create a new field in your table called CurrencyFromText, and make it
Numeric Single.
2. Create an Update query that takes the text value (like [TextCurrency] =
"37.54") and update the CurrencyFromText field by using...
=Val([TextCurrency])
Now, you've converted the old TextCurrency text to numeric values into
CurrencyFromText field, so you can delete the old TextCurrency from the
table.

hth
Al Camp

> Hi,
> Using VBA how can i change a text field to a currencdy field type
>
> Thank,
Ofer - 12 May 2005 11:00 GMT
I dont have the right syntax here, but check in your help the "Alter Table"
you can add fields, remove fields, change fields type.

> Hi,
> Using VBA how can i change a text field to a currencdy field type
>
> Thank,
Ofer - 13 May 2005 11:28 GMT
My earlier answer was if you want to change the type in a table.
if you want to change a type of a variable from text to currency you should
use the CCur function

CCur(nz(MyVariable,0))

> Hi,
> Using VBA how can i change a text field to a currencdy field type
>
> Thank,
 
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.