473,396 Members | 1,784 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,396 software developers and data experts.

Access db opens read only when linked Excel file is open

16
Hi,

I have an Excel spreadsheet which extracts and formats info from an Access DB for reporting purposes etc., it refreshes on open and is available to all users. However, when the excel file is open the Access DB opens read-only and the 'Disable Shift&Click' Function fails to work. This means that if anyone opens the spreadsheet and leaves it open no-one can use the DB.

Has anyone else seen this problem and is there a way around it?

Many Thanks in advance ffripp
Jul 31 '14 #1
5 29908
twinnyfo
3,653 Expert Mod 2GB
I am just trying to think of ways around the refreshing Excel Spreadsheet. I know how important "up to the minute" data can be, but in this case, is it required? If not, then it could be refreshed daily. I try to avoid any possible situations in which my DB will be locked.

However, I would try to find a way that instead of using a spreadsheet linked to the DB, that you devise a way that users could download and save a fresh, unlinked copy whenever they needed it.

I have not experienced this issue, as I have not used Excel in this way, I have only linked to spreadsheets that are read only in Access.

Others here may have some better ideas.
Jul 31 '14 #2
ffrippy
16
Thanks for your reply twinnyfo,

having the spreadsheet refresh on open is very convenient, especially as it allows me to provide different individuals with different views of the data as we operate a 'Need to Know'system. I thought that maybe there was a way to refresh on open and then drop the connection, which seems logical but I can't spot an option for it. I also tried dropping the 'Refresh on Open' and 'Enable Background Refresh' which is fine until you do a refresh then it just keeps the connection again.

ffripp

I might have to look at getting access to create and email reports automatically each day.
Jul 31 '14 #3
zmbd
5,501 Expert Mod 4TB
This has to do with how the connection was made in EXCEL... it opens the database in exclusive mode by default. This is due to the fact normally the data isn't set up to refresh automatically.


What you need to do (in office 2010):
Close the related database and Access otherwise changes will not take.

Ribbon>Data>Connections

In the dialog box select the connection and then [Properties]

Now in the {Usage} tab I like to select
Enable Background refresh
Refresh every (the time is up to you... be careful though, too often and the end-users start marching with farm implements and tourches)
Refresh data when opening file

{Definition} tab
This is the pain...
The connection string is like the registry... you break it you bought it.
Search thru the string until you find something like this
(if the database says you can't make changes then:)
"Mode=Share Deny Write"
or
(if you are told the database is already in use:)
"Mode=Share Deny Read|Share Deny Write"

Now be careful here...
"Mode=Share Deny None"

Close back to the Connections manager dialog.
There's a refresh button there... click it.
now close the dialog.
Refresh once on the worksheet level (not really needed... I just like to click buttons... elelator-go-up...elelator-go-down wheeeeeeee (@_@)

This will allow you to open the database and make changes to the information that may not show up in the worksheet until the refresh. Depending on how you setup the other options... changes to the workbook may or may not write back to the database.
Jul 31 '14 #4
ffrippy
16
Thanks for that zmbd,

However, I've just found a much simpler answer....in Excel under the 'DATA' tab, rather than use 'Get External Data/from Access', tab use the 'Get External Data/From Other Sources' option, then select 'From Microsoft Query'. Using this option has two major advantages, firstly you get all the same options as the 'From Access' option but it doesn't hold the connection, so problem solved there. Then secondly, you get to be able to select individual fields from the table or query, where the 'From Access option only allows you to select the entire table or query.

Thanks both for your help..

ffripp
Aug 1 '14 #5
zmbd
5,501 Expert Mod 4TB
ah yes... however that wasn't your question (^_^)

As for the connection option requiring the full table or query... you design and store the query in Access to restrict the returned data with option you're going to use you design and store the query in excel... same net effect. (^_^)
Aug 1 '14 #6

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

Similar topics

6
by: hamma_thrower | last post by:
I am troubleshooting for a computer that just had 2003 installed and can not open files/DB >From a complete uninstall, reinstall: The files are reconized as access, and when you click on...
2
by: Reza Solouki | last post by:
Hello, I never had to do anything with office tools programmatically till now(I guess there is first time for everything), so this might be a very silly and simple question for some of you. Any...
1
by: Yoavo | last post by:
Hi, I need to read data from excel file. How do I do it ? Yoav.
1
by: psuaudi | last post by:
I’m using a vb.net app that opens a powerpoint presentation and calls the updatelinks function of powerpoint. One slide in the presentation is linked to a cell range in an excel file, and the...
1
by: tomg | last post by:
How can I get all of my MS Access form names into an Excel file? thanks,
8
by: shenkel55 | last post by:
I'm using Access and Excel 2003. Using either the import wizard or code, I have the same problem. This problem only happens with Excel files automatically generated by Corp IT. If I try to do an...
1
by: JFKJr | last post by:
Hi! I have exported an access table data into an excel file using the following code. However, the code exported all the data to the excel sheet starting from 'A' cell (first column). But I want to...
5
by: Daryl Austin | last post by:
I successfully linked an Excel file into my Access database and using an Update query pull in information to my Quote log table. That works fine. Now I am trying to go the other direction, and use...
3
by: MNNovice | last post by:
Hi, I am using Access 2007. I have been using an Access report to create an Excel file by manually entering the same data. I was wondering if it's possible to export data from an Access report...
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:
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.