PC Review


Reply
Thread Tools Rate Thread

Determining data type of imported data

 
 
=?Utf-8?B?Sm9lQTIwMDY=?=
Guest
Posts: n/a
 
      19th Jun 2006
I am working with an Access application that requires importing Excel Data
into an exisiting table. The new data overwrites the old data each time, but
for the application to work it has to use that existing table with columns
with data types, Text, Date, Number. Sometimes the data from excel imports as
Number in the first column even if it is formatted as general or text. Is
there a work around for this, or is there a way for the app to compare the
two datatypes and switch the type if it is incorrect.
 
Reply With Quote
 
 
 
 
John Vinson
Guest
Posts: n/a
 
      19th Jun 2006
On Mon, 19 Jun 2006 13:23:01 -0700, JoeA2006
<(E-Mail Removed)> wrote:

>I am working with an Access application that requires importing Excel Data
>into an exisiting table. The new data overwrites the old data each time, but
>for the application to work it has to use that existing table with columns
>with data types, Text, Date, Number. Sometimes the data from excel imports as
>Number in the first column even if it is formatted as general or text. Is
>there a work around for this, or is there a way for the app to compare the
>two datatypes and switch the type if it is incorrect.


Two suggestions:

- Don't directly Import the spreadsheet; instead, link to it, and run
an Append query loading your (correctly datatyped) Access table.

- If necessary, put a dummy row at the top of the spreadsheet with an
unambiguous text field ('X for example) above each such column.

John W. Vinson[MVP]
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determining the Data Type of a Field Mr. JYC Microsoft Access VBA Modules 6 30th Sep 2008 07:31 PM
Determining the data type. satadru Microsoft Excel Misc 5 8th Sep 2008 08:39 AM
Data Type Mismatch in Expression - can I force a query to read as a diferent data type? S Davis Microsoft Access Queries 1 7th Jun 2007 11:33 PM
Determining native database data type? Andy Microsoft ADO .NET 0 8th Nov 2005 08:18 PM
Question for Joe Fallon--determining Data type cb Microsoft Access External Data 3 14th Oct 2004 01:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:52 AM.