Office & Productivity Software forum

General discussion

Query/Excel problem

by imsorryihaventaclue / January 19, 2006 5:52 PM PST

Hi,

I'm using MS query (office 2000) to retrieve information from a Genesis database. The preview pane in query shows all the data (6 fields, a mixture of text and integer) correctly.

With a small number of matches, it's possible to copy and paste the data into an excel spreadsheet and all of it is displayed correctly - no problem.

The problem arises when a large number of matches are found (approx. 10,000 - is that large in comparison? I'm not that experienced in these matters!) to the query. Trying to copy and paste this number of matches causes both programs to freeze.

In this case the only option I can see is to run the query and export the data to an excel sheet, besides, in all cases this would be preferable due to the ease of refreshing the query.

When I try to do this, the data is all returned to excel correctly except for one text field which in all instances is represented by square boxes and chinese characters.

I'm thinking the problem must be between the communication between query and excel as I can see the data correctly in query, and copy/pasting a small number of matches into excel results in succesful displaying of all the data.

I hope this clearly explains the problem, any help much appreciated,

A

Discussion is locked
You are posting a reply to: Query/Excel problem
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Query/Excel problem
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Work around?
by Kees Bakker / January 19, 2006 6:35 PM PST
In reply to: Query/Excel problem

Change the query so it returns 5000 records or so at a time. Then copy/paste that.

If there's a numeric field, you might be able to select on value (< 100, >=100 < 200, >=200) to make three query. Same idea for a text field or a date.

You might also try to export the complete big file to another format (say, csv or dbf or txt, I can't see here what MS Query supports) and import that in Excel. It might just work.

Hope this helps.


Kees

Collapse -
problem solved
by imsorryihaventaclue / January 20, 2006 12:31 AM PST
In reply to: Work around?

Thanks for your suggestion Kees, but the problem has now been solved. For anyone who is interested, the field must have been a ''long'' as ticking this box in the odbc driver did the trick,

A

Collapse -
(NT) (NT) Good job. Better solve than work-around, of course.
by Kees Bakker / January 20, 2006 5:54 AM PST
In reply to: problem solved
Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

Does BMW or Volvo do it best?

Pint-size luxury and funky style

Shopping for a new car this weekend? See how the BMW X2 stacks up against the Volvo XC40 in our side-by-side comparison.