#1   Report Post  
Posted to microsoft.public.excel.misc
Osmar Mateus
 
Posts: n/a
Default Database Query


I developed a query that reads data from MS Access. It works fine but I
have changed the name of the folder where the files are and it doesn´t
work anymore.

Someone can help me? Thanks.


--
Osmar Mateus
------------------------------------------------------------------------
Osmar Mateus's Profile: http://www.excelforum.com/member.php...o&userid=30938
View this thread: http://www.excelforum.com/showthread...hreadid=506117

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Database Query


Try this:

Copy the renamed folder and its contents into the location the query is
referencing.
Rename the folder to the previous name.

Now, when you edit the query, MS Query will locate the folder and the
data source. Click the [SQL] button and edit the FROM line so it
references the new folder name.

Then, delete the unnecessary folder.

Does that help?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=506117

  #3   Report Post  
Posted to microsoft.public.excel.misc
Osmar Mateus
 
Posts: n/a
Default Database Query


Don

Thanks for your help.

It worked but I lost the information about the parameters.

In fact, I need to develop the solution in a computer and deploy it in
another computer, with differents folders.

Best regards,

Osmar


--
Osmar Mateus
------------------------------------------------------------------------
Osmar Mateus's Profile: http://www.excelforum.com/member.php...o&userid=30938
View this thread: http://www.excelforum.com/showthread...hreadid=506117

  #4   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Database Query


Here's a thought...(un-tested)

While I'm generally not a fan of mapped network drives, maybe this is
an instance where it could work for you. You could map a network drive
to the folder location and use that for the query source.

Example:
With a source located at
\\Servername\MajorFolder\MinorFolder\MyData.mdb

Map M:\ to \\Servername\MajorFolder\MinorFolder\

The query source would now be: M:\MyData.mdb

Then, create an M:\ drive on each destination computer that refers to
the mdb file location that they will be using.
Note though, the mdb file name will need to be consistent.

Is that something you can work with?

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=506117

  #5   Report Post  
Posted to microsoft.public.excel.misc
Osmar Mateus
 
Posts: n/a
Default Database Query


I will work on it.

Thanks a lot!

Osmar


--
Osmar Mateus
------------------------------------------------------------------------
Osmar Mateus's Profile: http://www.excelforum.com/member.php...o&userid=30938
View this thread: http://www.excelforum.com/showthread...hreadid=506117



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
Anyone Else Use Database Query to Query Another Sheet in the Same Ron Coderre Excel Discussion (Misc queries) 0 November 28th 05 06:16 PM
Database Query Neville Excel Discussion (Misc queries) 0 October 21st 05 05:54 AM
MS Query not installed for New Database Query Malcolm Walker Excel Discussion (Misc queries) 0 August 2nd 05 10:58 PM
Database Query -- Data Type Mismatch StephenP Excel Discussion (Misc queries) 0 April 14th 05 07:05 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


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