LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ake Ake is offline
external usenet poster
 
Posts: 18
Default Access query does not work in Excel

In Access I generated the following query:
SELECT dbo_tblProj.strProj, dbo_tblWood.strSample,
dbo_tblWoodCell.dtsFinish, "C" AS Scnr
FROM (dbo_tblProj INNER JOIN dbo_tblWood ON dbo_tblProj.lngIdProj =
dbo_tblWood.lngIdProj)
INNER JOIN dbo_tblWoodCell ON dbo_tblWood.lngIdWood =
dbo_tblWoodCell.lngIdWood
WHERE (dbo_tblWoodCell.dtsFinish Is Not Null);

Which renders a list of the following type:
strProj strSample dtsFinish Scnr
ProjA Sample1 2004-06-18 C ... Etc

Pasting the same Query into the Excel Query Wizard and executing it, first
gives a message about not being able to display the query graphically, and
then the message "Could not add the table 'dbo_tblProj'."
I tried to explicity name the DB by "...FROM (Database.dbo_tblProj..." but
that gave the same result.
(The query: SELECT tblProj.strProj FROM SS3Data.dbo.tblProj tblProj works
just as expected when entered into Excel).

Q1: Shouldn't any query generated in Access also work from Excel?
Q2: How can I make this specific query work in Excel (it is eventually
targeted for a Pivot graph, including new Excel formulas in new columns)

Best regards /Ake
 
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
Query from Access into Excel cause Access to go to read only T Stephens Excel Discussion (Misc queries) 0 March 24th 09 04:17 PM
Can I use MS Query in Excel like an Append Query in Access Sam Wardill Excel Discussion (Misc queries) 0 April 11th 06 02:41 PM
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
Access data -work in Excel- save in Access s_u_resh Excel Programming 1 October 25th 04 12:52 PM
Access query vs. Excel query dutty Excel Programming 1 July 28th 04 07:19 PM


All times are GMT +1. The time now is 08:06 AM.

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"