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

Problem Creating A File Then Trying To Zip It

AccessXP (2000 Mode)

I use the following statements to create a database file:
DataFile = Path & "CouncilDBData.mdb"
Set Db = DBEngine.Workspaces(0).CreateDatabase(DataFile, dbLangGeneral)

I next run four make-table queries to ceate four tables in the database.

Finally, I try to zip the database and get the message 'File Not Found or No
Read/Write Permissions Or Sharing Problem". When I look in the folder,
CouncilDBData.mdb is there. Can anyone offer any in-sight as to what the problem
is? All the above actions are in the same procedure, might it be that the new
database file is not saved to the folder until the procedure is complete?

Thanks,

Steve
Nov 12 '05 #1
4 1572
Could it be that the file is still flagged as Open and the message isn't
fully accurate? I don't know that's the case, but seems it could cause a
problem.

Larry Linson
Microsoft Access MVP

"Steve" <sp**@nospam.spam> wrote in message
news:Uq******************@newsread3.news.atl.earth link.net...
AccessXP (2000 Mode)

I use the following statements to create a database file:
DataFile = Path & "CouncilDBData.mdb"
Set Db = DBEngine.Workspaces(0).CreateDatabase(DataFile, dbLangGeneral)

I next run four make-table queries to ceate four tables in the database.

Finally, I try to zip the database and get the message 'File Not Found or No Read/Write Permissions Or Sharing Problem". When I look in the folder,
CouncilDBData.mdb is there. Can anyone offer any in-sight as to what the problem is? All the above actions are in the same procedure, might it be that the new database file is not saved to the folder until the procedure is complete?

Thanks,

Steve

Nov 12 '05 #2
"Larry Linson" <bo*****@localhost.not> wrote:
Could it be that the file is still flagged as Open and the message isn't
fully accurate? I don't know that's the case, but seems it could cause a
problem.


To add to Larry's posting see if the corresponding .ldb file is present when you do
the zip. If so something is still open against it.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #3
Larry,

Your response was 100% right. I added a line to set Db = Nothing immediately
before the zip code and all works well now. Thanks for the insight!

Steve
"Larry Linson" <bo*****@localhost.not> wrote in message
news:pP****************@nwrddc02.gnilink.net...
Could it be that the file is still flagged as Open and the message isn't
fully accurate? I don't know that's the case, but seems it could cause a
problem.

Larry Linson
Microsoft Access MVP

"Steve" <sp**@nospam.spam> wrote in message
news:Uq******************@newsread3.news.atl.earth link.net...
AccessXP (2000 Mode)

I use the following statements to create a database file:
DataFile = Path & "CouncilDBData.mdb"
Set Db = DBEngine.Workspaces(0).CreateDatabase(DataFile, dbLangGeneral)

I next run four make-table queries to ceate four tables in the database.

Finally, I try to zip the database and get the message 'File Not Found or

No
Read/Write Permissions Or Sharing Problem". When I look in the folder,
CouncilDBData.mdb is there. Can anyone offer any in-sight as to what the

problem
is? All the above actions are in the same procedure, might it be that the

new
database file is not saved to the folder until the procedure is complete?

Thanks,

Steve


Nov 12 '05 #4
Thanks for responding, Tony!
"Tony Toews" <tt****@telusplanet.net> wrote in message
news:sq********************************@4ax.com...
"Larry Linson" <bo*****@localhost.not> wrote:
Could it be that the file is still flagged as Open and the message isn't
fully accurate? I don't know that's the case, but seems it could cause a
problem.
To add to Larry's posting see if the corresponding .ldb file is present when

you do the zip. If so something is still open against it.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm

Nov 12 '05 #5

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

Similar topics

1
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have...
5
by: Joan | last post by:
I am creating a word document from an asp page. I have no problems actaully creating the document and creating some tables that have data in them. I am using Response.ContentType =...
2
by: Brian Cooper | last post by:
I am trying to determine a permission problem trying to write a text file from one web server to another. Here is the situation: We have two domains in place one is Active Directory and the...
5
by: יוני גולדברג | last post by:
Hi, While trying to create new directory i recieve the following error message: "System.IO.DirectoryNotFoundException: Could not find a part of the path "\\premfs16\sites". The path exists, even...
13
by: Lee Newson | last post by:
Hi, I have just written my first application using VB.NET. The app works fine when i am running it within .NET for debugging purposes, however when i try to run the app from the .exe file that...
7
by: Nathan Sokalski | last post by:
I am having a problem saving an image with the same name it originally had. I have two similar versions of my code, one in which I close the FileStream used to open the original image before saving,...
6
by: TPJ | last post by:
Help me please, because I really don't get it. I think it's some stupid mistake I make, but I just can't find it. I have been thinking about it for three days so far and I still haven't found any...
1
by: kkizer | last post by:
I have a problem with this simple code below. Moving the files works perfectly, but once in a blue moon the file that it is trying to move dissapears before it can move it. and when this happens...
8
by: Dhananjay | last post by:
hello everyone Do you have any information how to generate a tool using .net which is used to translate the web page contents to html format. Plz reply me asap Thanks in advance Dhananjay
0
by: Grant Edwards | last post by:
I've got a system where I try to install extensions using /usr/local/bin/python setup.py install But, it fails when it tries to use a non-existant compiler path and specs file. I suspect it's...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.