473,583 Members | 3,010 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Database Password - Enter by code.

If one converts that .mdb into an .mde the code is secure but the
tables can still be imported.
Just for Very Basic protection, I have placed a Password on the
database using the "Set Database Password" option. Now it requires
that the password be entered each time you start the database. How do
I enter the Password using code, so that the database starts up
without having to type it in ??? I notice that there is a way in code
to set the password, which I believe is for changing the password. I
don't want to change it, just enter it.

Thanks
Aug 3 '08 #1
16 8369
Look in Help for Command Line Options. I am reasonably certain you can
specify the password in the shortcut you place on the user's desktop, but,
er, wouldn't that defeat its purpose?

Larry Linson
Microsoft Office Access MVP

<co*****@gmail. comwrote in message
news:53******** *************** ***********@c65 g2000hsa.google groups.com...
If one converts that .mdb into an .mde the code is secure but the
tables can still be imported.
Just for Very Basic protection, I have placed a Password on the
database using the "Set Database Password" option. Now it requires
that the password be entered each time you start the database. How do
I enter the Password using code, so that the database starts up
without having to type it in ??? I notice that there is a way in code
to set the password, which I believe is for changing the password. I
don't want to change it, just enter it.

Thanks

Aug 3 '08 #2
'Send Key' string in a macro then convert to code ?? Maybe??

Larry Linson wrote:
Look in Help for Command Line Options. I am reasonably certain you can
specify the password in the shortcut you place on the user's desktop, but,
er, wouldn't that defeat its purpose?

Larry Linson
Microsoft Office Access MVP

<co*****@gmail. comwrote in message
news:53******** *************** ***********@c65 g2000hsa.google groups.com...
>>If one converts that .mdb into an .mde the code is secure but the
tables can still be imported.
Just for Very Basic protection, I have placed a Password on the
database using the "Set Database Password" option. Now it requires
that the password be entered each time you start the database. How do
I enter the Password using code, so that the database starts up
without having to type it in ??? I notice that there is a way in code
to set the password, which I believe is for changing the password. I
don't want to change it, just enter it.

Thanks


Aug 4 '08 #3
Thankyou Larry

I am basically looking to secure the data tables from import/export!
Since the Database Password offers
some protection, I was hoping to have code on startup (ie in the .mde)
a startup macro or something, that
would eliminate the need to enter the pass manually. The password is
not meant to secure the application
but simply prevent Import/Export accessibility to the tables.

I'll look into the help function, but am concerned now that the
password is required before the code executes?

Thanks Greg
On Aug 3, 6:41*pm, "Larry Linson" <boun...@localh ost.notwrote:
Look in Help for Command Line Options. I am reasonably certain you can
specify the password in the shortcut you place on the user's desktop, but,
er, wouldn't that defeat its purpose?

*Larry Linson
*Microsoft Office Access MVP

<code...@gmail. comwrote in message

news:53******** *************** ***********@c65 g2000hsa.google groups.com...
If one converts that .mdb into an .mde the code is secure but the
tables can still be imported.
Just for Very Basic protection, I have placed a Password on the
database using the "Set Database Password" option. Now it requires
that the password be entered each time you start the database. *How do
I enter the Password using code, so that the database starts up
without having to type it in ??? *I notice that there is a way in code
to set the password, which I believe is for changing the password. *I
don't want to change it, just enter it.
Thanks- Hide quoted text -

- Show quoted text -
Aug 4 '08 #4
Yes, for Access security, the password is required to open Access, long
before the database is opened and any code or macros run... so, no, a
database can't supply its own password. That is why I suggested you put a
Shortcut on the user's desktop and include the password argument in the
Command Line associated with the Shortcut.

Larry Linson
Microsoft Office Access MVP

<co*****@gmail. comwrote in message
news:6c******** *************** ***********@w7g 2000hsa.googleg roups.com...
Thankyou Larry

I am basically looking to secure the data tables from import/export!
Since the Database Password offers
some protection, I was hoping to have code on startup (ie in the .mde)
a startup macro or something, that
would eliminate the need to enter the pass manually. The password is
not meant to secure the application
but simply prevent Import/Export accessibility to the tables.

I'll look into the help function, but am concerned now that the
password is required before the code executes?

Thanks Greg
On Aug 3, 6:41 pm, "Larry Linson" <boun...@localh ost.notwrote:
Look in Help for Command Line Options. I am reasonably certain you can
specify the password in the shortcut you place on the user's desktop, but,
er, wouldn't that defeat its purpose?

Larry Linson
Microsoft Office Access MVP

<code...@gmail. comwrote in message

news:53******** *************** ***********@c65 g2000hsa.google groups.com...
If one converts that .mdb into an .mde the code is secure but the
tables can still be imported.
Just for Very Basic protection, I have placed a Password on the
database using the "Set Database Password" option. Now it requires
that the password be entered each time you start the database. How do
I enter the Password using code, so that the database starts up
without having to type it in ??? I notice that there is a way in code
to set the password, which I believe is for changing the password. I
don't want to change it, just enter it.
Thanks- Hide quoted text -

- Show quoted text -

Aug 5 '08 #5


Can you password protect the BE database and supply the password
automatically when linking from the FE? If so, exactly how?

Bob
Aug 5 '08 #6
On Mon, 04 Aug 2008 22:07:44 -0500, Bob Alston <bo********@yah oo.com>
wrote:

I used A2007 accdb, and the "Encrypt with password" option.

Dim td As DAO.TableDef
Set td = CurrentDb.Creat eTableDef("Tabl e1")
td.Connect = "MS
Access;PWD=myPa ssword;DATABASE =C:\M2Dev\pwPro tected.accdb"
td.SourceTableN ame = "Table1"
CurrentDb.Table Defs.Append td
CurrentDb.Table Defs.Refresh
-Tom.
Microsoft Access MVP

>

Can you password protect the BE database and supply the password
automaticall y when linking from the FE? If so, exactly how?

Bob
Aug 5 '08 #7
Tom van Stiphout wrote:
On Mon, 04 Aug 2008 22:07:44 -0500, Bob Alston <bo********@yah oo.com>
wrote:

I used A2007 accdb, and the "Encrypt with password" option.

Dim td As DAO.TableDef
Set td = CurrentDb.Creat eTableDef("Tabl e1")
td.Connect = "MS
Access;PWD=myPa ssword;DATABASE =C:\M2Dev\pwPro tected.accdb"
td.SourceTableN ame = "Table1"
CurrentDb.Table Defs.Append td
CurrentDb.Table Defs.Refresh
-Tom.
Microsoft Access MVP

>>
Can you password protect the BE database and supply the password
automaticall y when linking from the FE? If so, exactly how?

Bob
Interesting.

Now can I do it with regular linked tables?
Aug 5 '08 #8
On Mon, 04 Aug 2008 23:01:55 -0500, Bob Alston <bo********@yah oo.com>
wrote:

??? Why do you accuse mine of being irregular?
-Tom.

>Tom van Stiphout wrote:
>On Mon, 04 Aug 2008 22:07:44 -0500, Bob Alston <bo********@yah oo.com>
wrote:

I used A2007 accdb, and the "Encrypt with password" option.

Dim td As DAO.TableDef
Set td = CurrentDb.Creat eTableDef("Tabl e1")
td.Connect = "MS
Access;PWD=myP assword;DATABAS E=C:\M2Dev\pwPr otected.accdb"
td.SourceTableN ame = "Table1"
CurrentDb.Table Defs.Append td
CurrentDb.Table Defs.Refresh
-Tom.
Microsoft Access MVP

>>>
Can you password protect the BE database and supply the password
automatical ly when linking from the FE? If so, exactly how?

Bob
Interesting.

Now can I do it with regular linked tables?
Aug 5 '08 #9
On Mon, 4 Aug 2008 08:14:01 -0700 (PDT), "Greg (co*****@gmail. com)"
<co*****@gmail. comwrote:
>Thankyou Larry

I am basically looking to secure the data tables from import/export!
Since the Database Password offers
some protection, I was hoping to have code on startup (ie in the .mde)
a startup macro or something, that
would eliminate the need to enter the pass manually. The password is
not meant to secure the application
but simply prevent Import/Export accessibility to the tables.

I'll look into the help function, but am concerned now that the
password is required before the code executes?

Thanks Greg
This intrigues me. I know very little about Access. But if I had your front
end on my computer, what would prevent me from writing a query with no filters
to display one table at a time. Then export the queries to excel or word
files.

Chuck
Aug 5 '08 #10

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

Similar topics

16
2880
by: John | last post by:
Hello. If I want to set up my first database and start using it in Dreamweaver what do I need to do? The book I'm working on has a CD with the database on. It is telling me to put it in the MySql folder on drive C. However, when I'm in Dreamweaver I click on Applications at the side, and the plus button to add a MySql database. It...
5
16905
by: scorpion53061 | last post by:
is it possible to set the database password that you can set in access for a database from a vb.net application?
1
1101
by: MCPD | last post by:
hello i have an aspx page that Contains tow textBoxs and Button i Must enter a correct username at the textbox 1 and password in textbox 2 that exists in database my command have this code MyCom = new SqlCommand("select * from Users where UserName='"+TextBox1.Text+"' and Password='"+TextBox2.Text+"'",MyCon);
2
3560
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in uby/Rails. I started it in Perl and gave up on Perl as I went from the 'display the database information on the web page' to the 're-display the information...
2
1816
by: runway27 | last post by:
i am helping a friend to build a forum website which uses php and mysql database. i am working on the registeration page for the forum website and its validation. i am using php 5.2.5 i am able to validate and do other tasks, however i really need help as i am stuck with regards to database injection. please answer the following questions....
39
5841
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f ISO-8859-1 -t UTF-8 mydb.sql mydb_utf8.sql mysqlCREATE DATABASE mydb_utf8 CHARACTER SET utf8 COLLATE utf8_general_ci;
3
2886
by: Michael Schöller | last post by:
Hello, First of all english is not my natural language so please fogive me some bad mistakes in gramatic and use of some vocables :). I have a great problem here. Well I will not use it anymore but I want to know why it is as it is ^^. I tried with .NET3.0 but I think it will be the same with 2.0 and 3.5. MSDTC is configured and working.
9
6116
by: Dhiru1009 | last post by:
Hi guys, I am trying to build a user registration form using PHP and MYSQL but encountring a problem. When I click on submit with empty fields it adds records to database also it doesn't matter what information I put it always add records to database when I click on submit. What can I do to make sure user will not be able to add records to...
1
2274
by: kiranbabu | last post by:
<html> <head> <style type="text/css"> h2{color:#A02820} </style> </head> <script language=javascript>
0
7895
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7826
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8182
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. ...
1
7935
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...
0
8193
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6579
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5374
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...
0
3843
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2333
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

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.