(Msg. 1) Posted: Tue Feb 05, 2008 12:18 am
Post subject: Modifying MS Query at run-time Add to elertz Archived from groups: microsoft>public>excel>querydao (more info?)
I'm struggling with a problem that is driving me mad. I have found numerous
references to this problem, and tried the suggested solutions, but to no
avail. Help from the guru's needed.
I have an Excel sheet with an embedded MS Query. It works beautifully. I
then move this workbook to another drive. I have a piece of VB (checked 100
times for correct operation) that modifies the Connection and CommandText
strings. Below are the Connection & CommandText strings both before and
after the run-time mod.
After the mod, when I try to edit the query I get "Unrecognised database
format 'C:\z\x.xls'. I then get a file open dialog which allows me to select
the correct file (which is already default). When I select the file it says
"This query cannot be edited by the Query Wizard", but I just ignore it and
I can.
I'm at my wits end, and I've tried everything. Can anyone shed some light on
this ?
(All the x,y,z & K's are sanitising, so I hope I haven't ruined the syntax)
(Msg. 2) Posted: Tue Feb 05, 2008 12:18 am
Post subject: Re: Modifying MS Query at run-time Add to elertz [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Nothing obviously amiss.
You could simplify the syntax of the query to
SELECT DISTINCT R.Resource
FROM [K Projects$] P, [Project Resourcing$] R
WHERE R.ProjectId = P.F3 AND R.Resource<>''
...but it may not help.
Bill Manville
MVP - Microsoft Excel, Oxford, England
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum