473,378 Members | 1,478 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

ODBC Connection Error

17
I have an excel spreadsheet that is linked to a query in an access database on a shared network drive. There is no security in the database, or the spreadsheet. As of this weekend, the other users of this query are no longer able to refresh the data from the Excel side (via existing macro, or simple refresh) without getting:

"[Microsoft][ODBC Microsoft Access Driver] Type mismatch in expression"

However, when I open the document, it doesn't have this error, and allows me to update it.

What would cause other users/computers to face this error, but not me?

Thanks in advance.

Using Office Suite 2003.
Mar 11 '08 #1
4 1986
cori25
83
Hello...

You can only refresh xls documents on the computer where the database it is pulling the data from is located.

Unless you move the database to a shared drive where all users attempting to refresh the xls have access. If you do this you will have to relink to the table or query where you are getting the data from so that it has the correct path.

I would recommend you leave the database on your c drive or wherever you may have it and have a module run everyday that will run the macro in excel to refresh the document and then send out an email to recipients daily with the updated report.

Hope this helps
Mar 11 '08 #2
cori25
83
Also, make sure users have read write access to the database if they want to refresh it on there own.
Mar 11 '08 #3
jclover
17
The database is already on a shared drive. The excel document is located on the shared drive as well, same directory as the database. Like I said, this all worked fine for the last 2 months, until Monday, then the error came up. Since the database is live, and updates are constantly made to it, it's important the users have the ability to refresh the file as necessary.

I've never had this issue before. Any change this might have something to do with Daylight Savings changes?

Hello...

You can only refresh xls documents on the computer where the database it is pulling the data from is located.

Unless you move the database to a shared drive where all users attempting to refresh the xls have access. If you do this you will have to relink to the table or query where you are getting the data from so that it has the correct path.

I would recommend you leave the database on your c drive or wherever you may have it and have a module run everyday that will run the macro in excel to refresh the document and then send out an email to recipients daily with the updated report.

Hope this helps
Mar 11 '08 #4
cori25
83
I do not think that daylight savings would have any effect on this. Something has changed in either the database or the excel spreadsheet. My suggestion is to relink the excel spreadsheet to the query in access. Also, I am sure you are aware that if someone is in the query or tables connected to that query, the refresh will not complete.

Thanks
Mar 12 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: jj | last post by:
Is it possible to call a remote php script from within Access? I'm thinking something like: DoCMD... http://www.domain.com/scripts/dataquery.php DoCmd.OpenQuery "update_data", acNormal, acEdit...
4
by: Dave | last post by:
Hey guys, I have an ODBC problem that has me stumped. I wrote a VBA script to run in Microsoft Excel that pulls data out of an application using that application's ODBC driver and puts it into...
3
by: Giuseppe D'Elia | last post by:
Hi there, I got a problem using an MS Access database through ASP.NET. After updating my system from .NET Framework 1.0 to 1.1, my existing application gives me the following error when...
7
by: HB | last post by:
Guys, How to use ODBC with a DB connection in ASP.NET? each time I try to add the ODBC name in the connection an error telling that it is not compatible (or so) to use ODBC. I have .NET 2002...
1
by: Jordi | last post by:
Hi, I have a problem when accesing data with and ODBC provider under asp.Net applications. The question is that if I run the application in the same server where data is stored then data is...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
3
by: Greg Strong | last post by:
Hello All, Is there any way to close an ODBC connection via DSN without completely closing the Access front-end? I'm doing some testing with using Access as a front-end to Oracle 10g Express...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
3
by: TheMaxx | last post by:
I've created ODBC DSN for sql server. When i connect from win application works OK. When i make WebService (on same machine) that connects to that ODBC connection fails: Error: Server was...
3
by: zombiechewtoy | last post by:
I'm having trouble making an ODBC connection using VB.NET 2005. I have tried nearly every connection string found on connectionstrings.com, in almost every format I can think of. I have tried...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.