Hidden files in Ms-Query cause ODBC connect errors or Query is wac

I have a Query fetch_from_bob that moves data (collapses records,unique key search, etc...) from excel spreadsheet "bob" to excel spreadsheet "fred".  Fred and bob live in the same directory" c:\123directory" on the same computer.

I allow this query to execute/refresh data automatically when one of the query paramaters is changed.  This works great.  I also have a macro that invokes the query to refresh the data whenever the user desires.  This works great as well.  The macro literally has all the VB code to execute the query.

But I'm just a part time programmer and eventually this little system has to be used by actual users.  So after thorough testing, I move these two little spreadsheets over to a users machine...

Anyway all works fine until I move fred and bob to a new home.

If I move fred and bob to different directory on the same computer or to say a users computer where I have to change the directory name, the query stops working.

ODBC returns a error messages that "c:\123directory\bob.xls doesn't exist".

So, I edited  the macro and changed the path names (in all 3 places) to reflect the new directory path where fred and bob live.  I still get the ODBC error message.

Why is the query still looking for c:\123direcotry\bob.xls when I clearly told the macro that bob now lives at c:\abcdirecotry\bob.xls ?????

I then edited the query fetch_from_bob by going to the external data area and activating a cell, then doing Data/Edit query.   I then changed the path name in the from portion of the sql staement.  The query editor will not let me  close/ save the file.  It gives an error message like "can't use parameters in a query that can't be displayed graphically"  

??Huh ?? what is that ?  I'm postive that the sql syntax i correct, as I onle changed the path portion from "c:\123director\bob.xls" to "c:\abcdirectory\bob.xls" 

With this bizarre behavior, I decided to  different route.  I edit the file fetch_from_bob.dqy with notepad.  I make real sure to the edit the query that lives in the same new directory "c:\abcdirectory" with bob and fred.  Again I change the sql from to reflect the new desired path and close/save the file.

When I go back into the spreadsheet and execute the query/refresh data, I get the same old ODBC error "c:\123directory\bob.xls doesn't exist". 

Why is query still looking for "c:\123directory\bob.xls" when I've clearly just told it that bob now lives at c:\abcdirectory\bob.xls"    ???

Anyway, I kept fooling around until I noticed that when you do File..Open while in the query editor that query editor is looking  down a path called User(whoever you happen to be logged on as)\Application Data\Microsoft\Queries\fetch_from_bob.dqy  

If you open this instance of fetch_from_bob.dqy, you find that query still has an sql from stagement that is looking down the old path "c:\123directory\bob.xls" .

How did this file get there ???  Is query building hidden files in the background ??

So, I go over to explorer and search high and low for USER\Application Data\Microsoft\Queries\*.*.

Explorer has never heard of any such file or path.  Explorer has a USER with many subdirectories, but not one called Appication Data.

I've tried this on 3 computers logged in as mutiple different users.  I get the same bogus result on all machines.

Clearly, Query is building some hidden program files in the background then using those files instead of the files I'm expecting it to use.   

How do I find\change those hidden files  ?

PS... All machines have some XP varient and I am logged on as a "user" on each machine not and "administrator"
0
7/9/2004 11:49:02 PM
excel.misc 78881 articles. 5 followers. Follow

4 Replies
812 Views

Similar Articles

[PageSpeed] 18

On Fri, 9 Jul 2004 16:49:02 -0700, needyourhelp
<needyourhelp@discussions.microsoft.com> wrote:

The 'hidden files!!' panic may be a little over the top - 



I think that you need to change your path in the DSN (Data Source
Name).

Go to control panel and change the path to the file in the ODBC 32-bit
data sources.  Select the data source you created when you first
created the spreadsheet. 

On another machine, you may have to create the data source.




PS Don't look now, but there's a black helicopter hovering outside
your window!! ;-)




Mike Argy
Custom Office Solutions
and Windows/UNIX applications

Please post on-topic responses to the newsgroup 

To e-mail me, remove nospam from the address in the headers
0
mikeargy2 (30)
7/10/2004 12:17:52 AM
Mike A wrote ...

> I think that you need to change your path in the DSN (Data Source
> Name).

DSN? The OP didn't mention one. Rather, it may be the connection
string that requires amending. See:

http://www.dicks-clicks.com/excel/ExternalData5.htm#ChangeConn

Jamie.

--
0
jamiecollins (192)
7/10/2004 9:32:31 AM
On 10 Jul 2004 02:32:31 -0700, jamiecollins@xsmail.com (Jamie Collins)
wrote:

>Mike A wrote ...
>
>> I think that you need to change your path in the DSN (Data Source
>> Name).
>
>DSN? The OP didn't mention one. Rather, it may be the connection
>string that requires amending. See:
>
>http://www.dicks-clicks.com/excel/ExternalData5.htm#ChangeConn
>
>Jamie.

It was a shot in the dark - the OP may have created a new DSN the
first time MS Query was used, not realizing that it is not part of the
query (it is a setting for the local OS) and will not be
copied/updated with the query or the workbook.

From the link you posted:

....the Connection string may contain a DefaultDir element that points
to a path.  You don't necessarily have to change the DefaultDir, but
if the directory that exists there doesn't exist on your hard drive,
you will get an error...

Another possibility!


Mike Argy
Custom Office Solutions
and Windows/UNIX applications

Please post on-topic responses to the newsgroup 

To e-mail me, remove nospam from the address in the headers
0
mikeargy2 (30)
7/10/2004 11:39:58 AM
Mike,

Thanks for your help.

No panic and no black helicopters here.  Just silly software behavior....

I am on a different machine from the original development box, so...

I tried recreating the ODBC data source several times.  No go.  Same error.

Question ?

Should I be using USER DSN, SYSTEM DSN or FILE DSN.  I tried changing all 3.

Question ?

What should the name of the ODBC data source be...

The name of the query as saved by ms-query ?

The name of the External Data Range Properties ?  I've noticed excel tends to change this from whatever name you've given it to "Query from Excel Files" on somehwat of a random basis.  Can't figure out what triggers this change.

The name of the actual target excel file that I would like query/odbc to actually extract data from?

I've tried all three names in all 3 DSN places on create new ODBC data source.

The only thing that works is to just erase the named external data range and recreate the query.  That works every time.  It also tells tme that query/odbc is creating something somewhere that I can't find change.

I could  to recreate query on each user machine, but I don't want to unless I have to, as I'd like a single source code resource.

Any more advice as I'm beyond stumped at this point.  I just don't get why query/odbc and vb-macro/odbc is simply ignoring explicit instructions of which dsn string to use for the connection.

Also, you didn't address the issue of ...\Application Data\Mircosoft\Queries at all.  Do you know why query is looking down this otherwise hidden or no-exitant path ?

thanks,

tim


"Mike A" wrote:

> On Fri, 9 Jul 2004 16:49:02 -0700, needyourhelp
> <needyourhelp@discussions.microsoft.com> wrote:
> 
> The 'hidden files!!' panic may be a little over the top - 
> 
> 
> 
> I think that you need to change your path in the DSN (Data Source
> Name).
> 
> Go to control panel and change the path to the file in the ODBC 32-bit
> data sources.  Select the data source you created when you first
> created the spreadsheet. 
> 
> On another machine, you may have to create the data source.
> 
> 
> 
> 
> PS Don't look now, but there's a black helicopter hovering outside
> your window!! ;-)
> 
> 
> 
> 
> Mike Argy
> Custom Office Solutions
> and Windows/UNIX applications
> 
> Please post on-topic responses to the newsgroup 
> 
> To e-mail me, remove nospam from the address in the headers
> 
0
7/12/2004 8:38:02 PM
Reply:

Similar Artilces:

Error: Invalid byte was found at byte index 63.
Does anyone know what this means: "Invalid byte was found at byte index 63. " If yes, please help. Apogee Apogee wrote: > Does anyone know what this means: > > "Invalid byte was found at byte index 63. " That means exactly what it says: At index 63 XML parser found a byte, which is invalid either according document's encoding or is forbidden in XML documents at all (see list of allowed in XML characters at http://www.w3.org/TR/2000/REC-xml-20001006#charsets) -- Oleg Tkachenko http://www.tkachenko.com/blog Multiconn Technologies, Israel ...

"The connection to the Exchange server is unavailable. Outlook must be online or connected to complete this action"
I have setup a number of user accounts and the relative mailboxes without any problem. However, since this afternoon, if I try and connect to a newly mailbox through the email accounts wizard I get the following error message: "The connection to the Exchange server is unavailable. Outlook must be online or connected to complete this action". This also occurs when I go to File>Open>Other User's Folder... and I try and lookup an existing account/mailbox that I know I have permission to. I know Outlook is connected to the Exchange server (I can ping, send and receive emails) ...

MS Money 95 data files
I hope that some one can answer this for me. I have used MS Money 95 for years, and it works just fine for me on Windows XP, however, I now have to reformat my hard drive, and have discovered that I can nolonger find my original install disk. Will the latest versions of Money still read the MS Money 95 data files. All that I have ever used the program for is to track my investments, and am unlikely to do any different in the future. Thanks Stan B In microsoft.public.money, Stan Banner wrote: >I hope that some one can answer this for me. >I have used MS Money 95 for years, and...

XCH Error 3092, OAB replication
I am getting error 3092 for OAB in Exchnage 2003 (migrated from 5.5) "Error 1129 occurred while processing a replication event. Folder: (3-8) NON_IPM_SUBTREE\OFFLINE ADDRESS BOOK\EX:/o" Tried to delete offilne addressbook and recreate but error has not stopped. Any help will be a great help on where to look to get rid of this issue. Thanks ...

Error Generating the Offlice Address Book
I have a mixed site with 3 5.5 server and 4 2003 servers. I installed 2003 SP1 a few weeks back and since then I'm having an issue generating my Offline Address Book. Here the event log messages I'm getting. Event ID 9331: OALGen encountered error 80040107 (internal ID 501023d) accessing the public folder store while generating the offline address list for address list '/'. - Default Offline Address List For more information, click http://www.microsoft.com/contentredirect.asp. Event ID 9335: OALGen encountered error 80040107 while cleaning the offline address list public ...

Password Issue with MS Money 2003
Hello, I am not familiar with newsgroups but I hope it is a forum to seek assistance. I am unable to reach MS support via email from my home computer on this issue. My Money 2003 requires a net passport password to open my account in Money that I have successfully accessed for approximately 12 months. It does not recognize my password now. I have attempted several times with my existing password, changed my net passport password, even uninstalled and re- installed MS Money 2003 to gain access to my account. Nothing has worked. Each time it states I have failed to enter the corr...

Compare records in a query then write equation??
Hi all, i have a problem and i need help, the case is as follows: the default rule is that i have 4 fields, (Date, Team, Score). each team is allowed to have one score per day but sometimes it can have 2 scores per day, when this is the case i wanna multiply each score by a certain number and have one score instead of 2 scores (similar to average but not average). So, i need to have a condition which compares records, and if this is the case, formulates this equation and gives me one score instead of 2 scores. Please help SELECT Team, [Date], Sum(Score)/Count(Score) * IIF(Count(Score) =1,1,S...

Unexpected error message on closing an Excel file
Suddenly I am getting the following message when I try to close a workbook: "Your formula contains an invalid external reference to a worksheet. Verify that the path, workbook, and range name or cell reference are correct, and try again" The mysterious thing is that it does not happen consistently and that, after I click OK after the above message, I can still save the file. What might be the cause of this error message and can the "invalid reference" be tracked down using one of the utility add-ins such as J. Walkenbach's PUP? If it only happens when you close ...

cant start outlook pst file to large
Hi I hope somebody may be able to help im new to outlook and now I cant start outlook message says cannot open your default email folders pst file its too large as I cannot open outlook I cannot delete old folders See if this helps: http://support.microsoft.com/kb/296088 -- -Ben- Ben M. Schorr, MVP Roland Schorr & Tower http://www.rolandschorr.com http://www.officeforlawyers.com/outlook.html Author: The Lawyer's Guide to Microsoft Outlook 2007: http://tinyurl.com/ol4law-amazon "Ray" <Ray@discussions.microsoft.com> wrote in message news:B3B824DC-3C9B-4B1B-8EF3-61...

Linker Error after upgrade from VC7.1
Hello all, After upgrading a VC7.1 project to visual studio 2005, it failed to build in the release configuration with the follwoing error : 1>nafxcw.lib(winocc.obj) : error LNK2005: "public: class CWnd * __thiscall CWnd::GetDlgItem(int)const " (?GetDlgItem@CWnd@@QBEPAV1@H@Z) already defined in InstallDlg.obj The debug build works fine. The project uses MFC in a static library. Well, after doing some research, it seems that this one is tied to the fact that in a release configuration, _AFX_ENABLE_INLINES is defined, so inline functions are embedded in the .obj file. Sure there...

Where is the workspace file stored?
I was given a project folder containing several dozen files. So where is the workspace file normally located? If I don't have a workspace file how can I cerate one? Using VC version 6. TIA I haven't used VC6 for some time, but if I remember right you can just open the .dsp file and it will create a .dsw file for you. It typically goes in the same folder with the code. Tom "Phisherman" <noone@nobody.com> wrote in message news:be93539ccf8a6f25ibh4vt6ggmtbi024mq@4ax.com... >I was given a project folder containing several dozen files. So where > is the wor...

Invalid XML error when I open customization setting
I have a problem when I try to open customization setting after I import an entity. The system errored "Invalid XML" "The XML passed to the platform is not well-formed XML". Please recommend how to resolve this problem. Thanks. ...

Change File Locations to Private Drive (not Folder)
Hi, I know that I can use "File Locations" in "Options" so that whenever I use the "Open..." command in Word, it will open to a specific folder. I'm wondering if there is a way that this can be applied not to a folder but to a specific drive on a network. Our company has a main public drive and has also assigned each of the Staff their own private drive. Is there a way to access the "main page" (for lack of a better term) of my private drive each time I use "Open..." in Word? Right now it goes to "My Computer" or ...

"MS Money 2000" mit kostenlosem HBCI-Modul (HBCIFM99) kompatibel?
Hallo, Gruppe, wollte mal fragen, ob das o. g. HBCI-Modul auch mit "MS Money 2000" (also - wenn ich das richtig verstanden habe - mit der letzten deutschen Version von "MS Money" 1999/2000 aus �sterreich/der Schweiz) kompatibel ist. Vielen Dank schon im voraus f�r Eure Hilfe. Gru� Struppi Roughly translated: ------------------------- Hello, Group, I wanted to ask whether the o. g. HBCI module also with "MS Money 2000" (also - if I understood correctly that - with the last German version of "MS Money" 1999/2000 from Austria/Switzerland) is compatib...

How To Copy MS Word mailing labels into Excel
I have a word doc that I want to put into Excel. I want to add some more fields to the names and addresses. Is this simple or do I have to learn how to program? Michael Rodriguez City of Grand Prairie Michael, have you tried to copy and paste the data into excel? -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 2000 & 97 ** remove news from my email address to reply by email ** "Michael Rodriguez" <mrodrigu@gptx.org> wrote in messa...

Filter recordset using query results
Hi all I have a form based on a query called [qry Quarterly Planning], it lists all Itineraries on the system. On this form you can filter records by specifying a Start and End Date for the [ReviewDate] and/or [Specialist]. It is a subform on a main unbound form, lets call this Subform1. Along side this I have another subform (Subform2) which displays ReviewDates that exist against an Itinerary. In other words Subform1 has a start date of an activity and if the activity lasts longer than 1 day, then the additional dates are stored in Subform2 (ItineraryDates). Currently when I...

how do I connect an object from one page to a different page?
I am trying to connect an object from one page to a seperate object on a different page. The instructions say to hold down your mouse button then click on the point you want it connected too. My problem is that is doesn't allow you to select the starting point of the connector, then select a different page, then click on your end point of the connector. Please help! try using a hyperlink. al "Pepper" <Pepper@discussions.microsoft.com> wrote in message news:3F5657F4-48EA-4681-A21E-D33FC7030401@microsoft.com... >I am trying to connect an object from one page to...

Drag and Drop file/directory names on Tree Control.
hi, I am writing an application in which i have one Tree control. Now i want that , when user drag & drop any file/folder on tree control the file name/folder name should be add in the tree control item. User may drag and drop file from desktop or may be from directory. I just want the path of that file/foder name nothing else. so plz tell me will it be possible ... Plz Help me............. Klic..... > I am writing an application in which i have one Tree control. >Now i want that , when user drag & drop any file/folder on tree >control the file nam...

adding name /creating field/query?
Hello, I can create an invoice_number field in a query using the primary field ID from the main table as invoice_number: ID but if ID say is 100, I cannot work out how to create renewal_invoice_100 Cheers Geoff Geoff We aren't there. We can't see what you're looking at. Where did "renewal_invoice_100" come from and what does it mean? Please post the SQL statement of the query you are trying to use. -- Regards Jeff Boyce www.InformationFutures.net Microsoft Office/Access MVP http://mvp.support.microsoft.com/ Microsoft IT Academy Program Mentor http://micro...

opening .bak file
Hi, I hope someone can help! I recently was performing a compacting operation on my outlook express folders. My computer shutdown due to a power failure and I lost some emails from a few of my folders. I was however able to get the .bak files (of the .dbx files that were lost) out of the recycle bin. If I could open one of these .bak files or convert it back to the .dbx file from which it was created I would retrieve these emails. Can anyone instruct me as to open this .bak file? Thanks for any help! Arnie K. How did you get the bak files out of the Recycle Bin? All e...

error 0x800cc0f
i installed windows xp, and i set up all my email accounts. they are all working , except one: i receive 0x800cc0f message, which states that the service has been interrupted, contact your ISP...., but this is not the case, since my internet conneciton is working fine all the account settings are correct I am having the same problem. I have to close outlook and reopen to retrieve all of my messages. Have you found a resolution yet? "Kerstin" wrote: > i installed windows xp, and i set up all my email > accounts. they are all working , except one: i receive > 0x800c...

McAfee 8.5.0i on access scan slows down MS Dynamics CRM web client
Our organization's McAfee 8.50i slows down MS Dynamics CRM v4 - on premise web client considerabley when loading forms and data. Besides completely disabling McAfee, does anyone know how to configure McAfee (or configure CRM) to ignore CRM related form and data loads. When disabling the oncaccess scan, or when disabling the scriptcan - it improves lookups from 8-9 seconds to 4-5 seconds. However, the organizatin policy is to have these enabled. What to do? We have the same behavior, and went we reported to Microsoft says that no solution has, then we buy and install Microsoft Securi...

error on upgrade: ID 4386
Hello, I am upgrading from DPM 2010 RC to DPM 2010 RTM, 64 bit version, on Win 2008 R2 standard. The RC is working without any issues. The upgrade scenario is supported. At the very end of the process the upgrade fails giving me the following. _____ The SQL Server installation failed because a restart was pending on this computer. Restart the computer and then start DPM Setup again. ID: 4386. Details: Unknown error (0x84be0bc2) _____ Restarting the server does not correct the issue. On the next attempt I am getting the same error message. Where to look for the pending rest...

Trying to read XML file into dataset
Hello. Developing a web site in VS2005, SP1, VB, .NET 2.0, ASP.NET 2.0 on XP Pro, SP2. I eventually want to use a gridview table to view xml data, but right now i can't seem to get my xml data into a dataset so that i can use it. I have an XML file and can open it in IE. There is no XSD or XSL file to go with it. I can't seem to get the XML data into a dataset. I tried using the following code, but it just does nothing. It doesn't give an error. It just executes the code and does nothing. Dim dataSet As DataSet = New DataSet dataSet.ReadXml("...

Excel DNS query
Hello, Is there a way for an Excel function to query a DNS server? Thanks. Soundy Not that I know of, but you can turn on the macro recorder, use 'get external data' and tailor the resulting code into a user function of your own. E.g. I've used this to create a button to get MS-Access data from a query that has the same name as the sheet (tab) name. It saves me a lot of copy-paste actions. Bas Hartkamp <soundy@gmail.com> schreef in bericht news:1151940450.029823.127570@j8g2000cwa.googlegroups.com... > Hello, > > Is there a way for an Excel function ...