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 / Modules / DAO / VBA / September 2007

Tip: Looking for answers? Try searching our database.

Update query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ToyFixer - 24 Sep 2007 13:12 GMT
I have a transferspreadhseet method which is uploading a worksheet into a
data table. How do I change the data type of the fields? Maybe with an Update
query. At the moment all data are imported as text, which creates problems
when trying to do calculations.

Toyfixer
John W. Vinson - 24 Sep 2007 21:04 GMT
>I have a transferspreadhseet method which is uploading a worksheet into a
>data table. How do I change the data type of the fields? Maybe with an Update
>query. At the moment all data are imported as text, which creates problems
>when trying to do calculations.
>
>Toyfixer

Access has "strong datatypes" - Excel doesn't. Access must guess at the
appropriate datatype when importing from Excel, and can often guess wrong!

One solution is to create a local Access table with the desired datatypes.
Rather than importing the spreadsheet into a new table, *link* to Excel and
run an Append query to migrate the data. If appropriate, you can first run a
Delete query to empty the previous records.

            John W. Vinson [MVP]
 
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.