473,789 Members | 2,269 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS Access database

Hi there

I'm currently creating a program (VB .Net 2003) in which I can create MS
Access databases. It took me a while to figure out how to create such
databases, but I'm still missing a few options which MS Access support:s:

1. Opening a database readonly from
2. Opening a database in exclusive mode
3. Encrypting and decrypting a database

Can anyone help me out?

thnx
Nov 23 '05 #1
6 1687

"Jan Janssen" <Ja********@ned .com> wrote in message
news:43******** *************** @news.wanadoo.n l...
Hi there

I'm currently creating a program (VB .Net 2003) in which I can create MS
Access databases. It took me a while to figure out how to create such
databases, but I'm still missing a few options which MS Access support:s:

1. Opening a database readonly from
2. Opening a database in exclusive mode
3. Encrypting and decrypting a database

Can anyone help me out?

thnx


--
<response type="generic" language="VB.Ne t">
This newsgroup is for users of Visual Basic version 6.0
and earlier and not the misleadingly named VB.Net
or VB 200x. Solutions, and often even the questions,
for one platform will be meaningless in the other.
When VB.Net was released Microsoft created new newsgroups
devoted to the new platform so that neither group of
developers need wade through the clutter of unrelated
topics. Look for newsgroups with the words "dotnet" or
"vsnet" in their name. For the msnews.microsof t.com news
server try these:

news://msnews.microsoft.com/

microsoft.publi c.dotnet.genera l
microsoft.publi c.dotnet.langua ges.vb
microsoft.publi c.dotnet.langua ges.vb.data
microsoft.publi c.dotnet.framew ork.adonet
microsoft.publi c.dotnet.framew ork.windowsform s.databinding
microsoft.publi c.vsnet.general
microsoft.publi c.vstudio.gener al
microsoft.publi c.access.securi ty
microsoft.publi c.dotnet.securi ty

</response>
Nov 23 '05 #2
Jan,

Don't get confused by using MS Access Interop, using ADO or older versions
of that (needs MDAC DLL's) or using ADONET (the most normal way for VS Net
2003).

This are three different ways of using an Access Database (there are more
differences than written below).

Using ADO and ADONET you only use the database Jet Engine as MS Access use
it as well, it does not give you all the posibilities from the MS Access
product. Therefore I would in your situation first decide what methode you
want to use.

MS Access Intereop cannot be used without a fully licenced MS Access
Microsoft product with the same version on a computer by the way. ADO and
AdoNet can access a Jet engine without that.

I hope this helps sofar,

Cor
Nov 23 '05 #3
On Mon, 21 Nov 2005 20:36:30 +0100, "Jan Janssen" <Ja********@ned .com> wrote:

¤ Hi there
¤
¤ I'm currently creating a program (VB .Net 2003) in which I can create MS
¤ Access databases. It took me a while to figure out how to create such
¤ databases, but I'm still missing a few options which MS Access support:s:
¤
¤ 1. Opening a database readonly from
¤ 2. Opening a database in exclusive mode
¤ 3. Encrypting and decrypting a database
¤
¤ Can anyone help me out?

Questions 1 and 2 are a function of the connection string.

"Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=E:\My Documents\bibli o.mdb;Mode=Read "

"Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=E:\My Documents\bibli o.mdb;Mode=Shar e Exclusive"

I believe you use CompactDatabase to encrypt an Access database:

http://support.microsoft.com/kb/306287/EN-US/
http://msdn.microsoft.com/library/de...ngdatabase.asp
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 23 '05 #4
as addition
I believe you use CompactDatabase to encrypt an Access database:
yes but you need a connection string with a system mdb to get the resulting
database encrypted
hth

Michel Posseth [MCP]
"Paul Clement" <Us************ ***********@sws pectrum.com> schreef in bericht
news:u4******** *************** *********@4ax.c om... On Mon, 21 Nov 2005 20:36:30 +0100, "Jan Janssen" <Ja********@ned .com>
wrote:

¤ Hi there
¤
¤ I'm currently creating a program (VB .Net 2003) in which I can create MS
¤ Access databases. It took me a while to figure out how to create such
¤ databases, but I'm still missing a few options which MS Access
support:s:
¤
¤ 1. Opening a database readonly from
¤ 2. Opening a database in exclusive mode
¤ 3. Encrypting and decrypting a database
¤
¤ Can anyone help me out?

Questions 1 and 2 are a function of the connection string.

"Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=E:\My Documents\bibli o.mdb;Mode=Read "

"Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=E:\My Documents\bibli o.mdb;Mode=Shar e Exclusive"

I believe you use CompactDatabase to encrypt an Access database:

http://support.microsoft.com/kb/306287/EN-US/
http://msdn.microsoft.com/library/de...ngdatabase.asp
Paul
~~~~
Microsoft MVP (Visual Basic)

Nov 23 '05 #5
On Tue, 22 Nov 2005 19:29:50 +0100, "m.posseth" <po*****@planet .nl> wrote:

¤ as addition
¤ > I believe you use CompactDatabase to encrypt an Access database:
¤
¤ yes but you need a connection string with a system mdb to get the resulting
¤ database encrypted
¤

Can you explain why that is because I don't see a reference to a system.mdw in the example I posted?
Or, is it simply using the default system.mdw file?
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 23 '05 #6
if you scroll a litle bit lower you see that it accepts these arguments
optional

but after rereading ,,, i guess i was not so clear in what i meant (
rry )

rephrase :

¤ yes but you need a connection string with a system mdb to get the
resulting
¤ database secure
I believe it is the intention of the TS to create from a unprotected
database a protected one, well as second connection string you should then
take one with a customized system.mdw

I do not see anny point of encrypting a database that anyone still may
access

regards

Michel Posseth [MCP]


"Paul Clement" <Us************ ***********@sws pectrum.com> wrote in message
news:94******** *************** *********@4ax.c om... On Tue, 22 Nov 2005 19:29:50 +0100, "m.posseth" <po*****@planet .nl> wrote:

¤ as addition
¤ > I believe you use CompactDatabase to encrypt an Access database:
¤
¤ yes but you need a connection string with a system mdb to get the
resulting
¤ database encrypted
¤

Can you explain why that is because I don't see a reference to a
system.mdw in the example I posted?
Or, is it simply using the default system.mdw file?
Paul
~~~~
Microsoft MVP (Visual Basic)

Nov 24 '05 #7

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

Similar topics

3
23878
by: Nicola | last post by:
Hi Everyone, I am new to programming and would like to know how to open an access Report from within vb 6. I am trying to write a program to organise cross stitch threads. I have found out how to use a database table but all I want to do now is to click a command button to display this access report. Any suggestions please ?????
11
17063
by: Rosco | last post by:
Does anyone have a good URL or info whre Oracle and Access are compared to one another in performance, security, cost etc. Before you jump on me I know Oracle is a Cadillac compared to Access the Ford Fairlane. I need this info to complete a school project. Thanks.
64
5261
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. Any comments? Thanks
52
9989
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server 2005, and, since he already has licenses for Office Pro 2002, he wants to upgrade to that. I've been saying that we need to upgrade to Access 2003, not 2002, even if Office is kept at 2002. We are also looking to do a fair amount of...
15
4644
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
49
3238
by: Mell via AccessMonster.com | last post by:
I created databases on Access 2003 and I want to deploy them to users. My code was also done using 2003. If they have Ms Access 2000 or higher, will they be able to use these dbs with all code, etc? Please explain -- Message posted via http://www.accessmonster.com
17
4421
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting there, but is there a way they can find out if that application was put there from a CD or email or created at work? Hint: It's not on a client/server database, just native jet database mdb created on Access 2003 (default 2000)...
34
2616
by: Mathieu Trentesaux | last post by:
Hello I downloaded Office 2007 for this reason : It seems, once again, that it is impossible to save any modification done in a VBA library, from the main project in Access. The save button remains desperatly grayed. It also seems impossible to open the library in another Access instance
21
4123
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a reliable way of connecting Access to a server. I am willing to switch to any version of Access which might solve the problem. Which server would you recommend and what are the advanatages and disadvantatges of the server you propose? Please also inlcude...
11
2406
by: Harel | last post by:
I have a report SQL which have been working for a few weeks. Its large and the target database is large. It has 59 join, and I dont think there is anything I can do about this, since the DB I use has been normalized by pros. My problem is I try to had another join to display another value, then I get a crash report from MS-Access. Anything I can to do diagnose this problem. My development depends on this SQL: SELECT
0
10403
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10193
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10136
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7524
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6755
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4087
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2904
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.