Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Edgar Thoemmes
 
Posts: n/a
Default Querying Access Database

Hi

Apologise if this is posted to the wrong group.

I have a query set up in an access database and I would like to pull the
results into an excel spreadsheet. I am trying to use External Data Source
and have managed to connect to the database with Microsoft Query.

I tried using the wizard but I couldnt get the result I was looking for. So
I tried it manually and entered the following SQL into the SQL Text box in
Microsoft Query:

SELECT qryMergedTopSuppliers.Vendor, qryMergedTopSuppliers.Descr,
qryMergedTopSuppliers.ABC, qryMergedTopSuppliers.Description,
qryMergedTopSuppliers.SumOfAmount
FROM qryMergedTopSuppliers;

And I get the message 'Could not add the table qryMergedTopSuppliers' am I
missing something here?

I also tried using so SQL from some of my existing queries but these all
brought up errors as well? Can anyone help with this problem or point me in
the direction of some resources?

TIA

Edgar
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Edgar

not sure why you can't get the result that you want using MSQuery ..
however, when i construct a query with MSQuery and view the SQL the table is
'fully qualified'
e.g.

SELECT Query1.person, Query1.language
FROM `C:\Documents and Settings\JulieD\My Documents\MyDatabase`.Query1
Query1

Maybe you need to make this change to your SQL statement.

However, to get the information you want using MSQuery, you should just need
to select qryMergedTopSuppliers from the list of available tables/queries,
then click on the + next to it to display the fields, choose the fields you
want and then basically click FINISH.

Hope this helps
Cheers
JulieD


"Edgar Thoemmes" wrote in message
...
Hi

Apologise if this is posted to the wrong group.

I have a query set up in an access database and I would like to pull the
results into an excel spreadsheet. I am trying to use External Data Source
and have managed to connect to the database with Microsoft Query.

I tried using the wizard but I couldnt get the result I was looking for.
So
I tried it manually and entered the following SQL into the SQL Text box in
Microsoft Query:

SELECT qryMergedTopSuppliers.Vendor, qryMergedTopSuppliers.Descr,
qryMergedTopSuppliers.ABC, qryMergedTopSuppliers.Description,
qryMergedTopSuppliers.SumOfAmount
FROM qryMergedTopSuppliers;

And I get the message 'Could not add the table qryMergedTopSuppliers' am I
missing something here?

I also tried using so SQL from some of my existing queries but these all
brought up errors as well? Can anyone help with this problem or point me
in
the direction of some resources?

TIA

Edgar



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
How can I update an MS Access table record from within Execl works David Canfield Excel Discussion (Misc queries) 0 January 14th 05 08:51 PM
Query a Access database that has a module from Excel Oggie Excel Discussion (Misc queries) 1 January 4th 05 08:43 AM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM
Excel aficionado wants to learn Access Hari Excel Discussion (Misc queries) 0 December 3rd 04 06:03 AM
Excel user desires to learn ABC of Access Hari Excel Discussion (Misc queries) 1 December 3rd 04 02:32 AM


All times are GMT +1. The time now is 03:11 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"