473,467 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Importing Excel data into a Read Only Access file

Hi,

I have a read only access file with a linked table that connects to a
sybase database. So I can still add data to the table even though its
read only since the table is really in sybase. However, I want to
import data from an excel file (either via a macro in excel or access)
but I always get an "Error 3051" because the access file is read
only. Does anyone know a good workaround to this? I've been using the
TransferSpreadsheet method to no avail.

Thanks.

Apr 13 '07 #1
4 5487
"greg" <gr*****@gmail.comwrote
I have a read only access file with a linked table that connects to a
sybase database. So I can still add data to the table even though its
read only since the table is really in sybase. However, I want to
import data from an excel file (either via a macro in excel or access)
but I always get an "Error 3051" because the access file is read
only. Does anyone know a good workaround to this? I've been using the
TransferSpreadsheet method to no avail.
As far as I know, "Read Only" means "Read Only". My only suggestion is to
reset that option to allow writing, import the data, then reset again to
Read Only. Frankly, I don't recall ever having worked with a "Read Only"
Access DB... though I know there are occasions when they are appropriate.

Larry Linson
Microsoft Access MVP
Apr 14 '07 #2

I know its a strange request, but unfortunately necessary for work
related reason. Thanks.

On Apr 13, 8:15 pm, "Larry Linson" <boun...@localhost.notwrote:
"greg" <greg...@gmail.comwrote
I have a read only access file with a linked table that connects to a
sybase database. So I can still add data to the table even though its
read only since the table is really in sybase. However, I want to
import data from an excel file (either via a macro in excel or access)
but I always get an "Error 3051" because the access file is read
only. Does anyone know a good workaround to this? I've been using the
TransferSpreadsheet method to no avail.

As far as I know, "Read Only" means "Read Only". My only suggestion is to
reset that option to allow writing, import the data, then reset again to
Read Only. Frankly, I don't recall ever having worked with a "Read Only"
Access DB... though I know there are occasions when they are appropriate.

Larry Linson
Microsoft Access MVP

Apr 16 '07 #3
If it is to be read-only, have you considered linking your Access DB to the
Excel spreadsheet?

Unfortunately, if the entire Access DB is "read-only", that blocks any
possibility that I can imagine to _import_ anything. If it did not, then
"read-only" would be a misnomer.

Larry Linson
Microsoft Access MVP
"greg" <gr*****@gmail.comwrote in message
news:11*********************@b75g2000hsg.googlegro ups.com...
>
I know its a strange request, but unfortunately necessary for work
related reason. Thanks.

On Apr 13, 8:15 pm, "Larry Linson" <boun...@localhost.notwrote:
>"greg" <greg...@gmail.comwrote
I have a read only access file with a linked table that connects to a
sybase database. So I can still add data to the table even though its
read only since the table is really in sybase. However, I want to
import data from an excel file (either via a macro in excel or access)
but I always get an "Error 3051" because the access file is read
only. Does anyone know a good workaround to this? I've been using the
TransferSpreadsheet method to no avail.

As far as I know, "Read Only" means "Read Only". My only suggestion is
to
reset that option to allow writing, import the data, then reset again to
Read Only. Frankly, I don't recall ever having worked with a "Read Only"
Access DB... though I know there are occasions when they are appropriate.

Larry Linson
Microsoft Access MVP


Apr 16 '07 #4

Using a linked table to excel is another possibility. Right now I am
exploring creating another Access DB that is read/write to import the
data. It seems to work so far, however it isn't terribly fast.

Apr 18 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Grim Reaper | last post by:
I am importing a .csv file into Access that has 37 fields. My problem is that sometimes the last field only has data at the end of the column (it looks like when you import a file into Access, for...
1
by: sparks | last post by:
I have never done this and wanted to ask people who have what is the best way. One person said import it to excel, then import it into access table. but since this will be done a lot, I am...
2
by: nutthatch | last post by:
I want to be able to import an Excel spreadsheet into Access 2K using the macro command Transferspreadsheet. However, the file I am importing (over which I have no control) contains some records...
9
by: jillandgordon | last post by:
I am trying to import an excel file into Access 97. It looks perfectly all right but, every time I try to import it, I get to the lst step and am told that it was not imported due to an error. ...
1
by: Geoff Jones | last post by:
Hi I have a question which I hope somebody can answer. I have written a VB application with which I want to import an Excel file, analyze the data within it and do some calculations. There are...
5
by: hharriel | last post by:
Hi, I am hoping someone can help me with an issue I am having with excel and ms access. I have collected data (which are in individual excel files) from 49 different school districts. All...
3
by: mukeshsrivastav | last post by:
dear sir i want to move form excel to access. i have 5 excel file having same formats and fields.now i want to import all data in one access table. importing one file is easy .but importing and...
0
by: upadhyayanuj | last post by:
Hi I have an error while uploading file and then importing it into my sql table The process cannot access the file 'c:\inetpub\wwwroot\FlowLine\Excel File\Fan_Details.xls' because it is being...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.