Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
StephenP
 
Posts: n/a
Default Database Query -- Data Type Mismatch

I am using MS Query in Excel 2000 and 2002 to do a database query of a named
range on another Excel file. The challenge I am having is that the query
treats columns/fields that have a lot of numeric values as number data type
fields and ignores (leaves as blank) any text or alphanumeric entries in
those
fields. Is there a way to change the query or criteria so that it treats
certain fields as text even if they have a lot of numbers or all numbers in
them? I have formatted the original Excel fields with a text cell format,
but this does not help.

Ultimately the query will be added to a sheet using VBA, but I can't get the
query to work right itself.
Thanks.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
1-variable Data Table dependent on MS Query fails to update correctly [email protected] Excel Discussion (Misc queries) 0 March 30th 05 08:43 PM
Prompting to allow External Query Data Refresh Tim Baker Excel Discussion (Misc queries) 3 March 8th 05 12:29 PM
Linked query not expanding with new data Deb Excel Worksheet Functions 0 February 16th 05 08:09 PM
Macros to tranfer data to database Scribner Excel Discussion (Misc queries) 1 February 10th 05 02:08 AM
Pulling data out of a large database Dave Excel Discussion (Misc queries) 4 January 20th 05 04:49 AM


All times are GMT +1. The time now is 09:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"