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

Password-protect a BackEnd.DB/ma access 2000

Hi!

I wonder if anybody can help with the following:

I need to password-protect tables in MyBackEnd.DB, which is placed in
the same folder as the MyFrontEnd.DB

Now I've tried the KB_209953 article in the microsoft knowledge-base,
and I also looked
up the module example in the developer 2000 edition.

They both produces the error: "Invalid password".

I've checked that Capslock is not on, I've checked the path to the
MyBackEnd.DB,
and I've checked....

So, anybody that really got a working thing on:

1. Check the link to the MyBackEnd.DB
(in the OnOpen-event of 'frmMain' of MyFrontEnd.DB)
and maybe refresh the link (without user interaction)?

2. Open the password-protected MyBackEnd.DB
(in the OnOpent-event of frmMain of MyFrontEnd.DB) ?

Me.Name
Nov 13 '05 #1
5 2366


"Geir Baardsen" <ge***********@hotmail.com> skrev i melding
news:35**************************@posting.google.c om...
Hi!

I wonder if anybody can help with the following:

I need to password-protect tables in MyBackEnd.DB, which is placed in
the same folder as the MyFrontEnd.DB

Now I've tried the KB_209953 article in the microsoft knowledge-base,
and I also looked
up the module example in the developer 2000 edition.

They both produces the error: "Invalid password".

I've checked that Capslock is not on, I've checked the path to the
MyBackEnd.DB,
and I've checked....

So, anybody that really got a working thing on:

1. Check the link to the MyBackEnd.DB
(in the OnOpen-event of 'frmMain' of MyFrontEnd.DB)
and maybe refresh the link (without user interaction)?

2. Open the password-protected MyBackEnd.DB
(in the OnOpent-event of frmMain of MyFrontEnd.DB) ?

Me.Name


Can this code give you some idea?

Private Function RefreshLinks(strFileName As String) As Boolean
' Refresh links to the supplied database. Return True if successful.

Dim dbsOrders As DAO.Database
Dim tdf As DAO.TableDef
Dim intCount As Integer
Dim strPassword As String
strPassword = "12345678901234567890"
On Error GoTo Errorhandler

' Loop through all tables in the database.
Set dbsOrders = CurrentDb
For intCount = 0 To dbsOrders.TableDefs.Count - 1
Set tdf = dbsOrders.TableDefs(intCount)

' If the table has a connect string, it's a linked table.
If Len(tdf.Connect) > 0 Then
tdf.Connect = ";DATABASE=" & strFileName & ";PWD=" & strPassword
Err.Number = 0

On Error Resume Next
tdf.RefreshLink ' Relink the table.

If Err.Number <> 0 Then
RefreshLinks = False
Exit Function
End If
End If
Next intCount

RefreshLinks = True ' Relinking complete.
Exit Function

Errorhandler:
MsgBox "Error#: " & Err.Number & vbCrLf & Err.Description
RefreshLinks = False
End Function

--
____________________________

Sigurd Bruteig
www.made4u.no
Nov 13 '05 #2
>Can this code give you some idea?

Yes, indeed, Sigurd.

Thanks for guiding me.

Me.Name
Nov 13 '05 #3
Sorry, Sigurd...

I still get the message: "Invalid password"

I have...

1. Opened the BackEnd in Exclusive mode and set the password. I made
sure Capslock is not on. The backEnd is in the same folder as the
FrontEnd.

2. I've tried your solution and the microsoft knowledgebase solution,
both with the full length of folder path and also just ("MyDB.mdb"). I
made sure I try to open the correct table in order to have the
function work.

3. Nothing works...and I wonder why

Any suggestions?

I thought this would be straight forward.

I use win 98 and Office 2000 dev.ed.

There's an example in the ch.18 of the Dev.ed., but this doesn't
either.

I use and work, up till now, only with DAO.

Me.Name

Nov 13 '05 #4


news:35**************************@posting.google.c om...
Sorry, Sigurd...

I still get the message: "Invalid password"

I have...

1. Opened the BackEnd in Exclusive mode and set the password. I made
sure Capslock is not on. The backEnd is in the same folder as the
FrontEnd.

2. I've tried your solution and the microsoft knowledgebase solution,
both with the full length of folder path and also just ("MyDB.mdb"). I
made sure I try to open the correct table in order to have the
function work.

3. Nothing works...and I wonder why

Any suggestions?

I thought this would be straight forward.

I use win 98 and Office 2000 dev.ed.

There's an example in the ch.18 of the Dev.ed., but this doesn't
either.

I use and work, up till now, only with DAO.

Me.Name

Hei igjen!

Svarer på norsk, litt lettere.

Tuklet selv en del med syntaksen på passordkoden, men denne koden fungerer
feilfritt hos meg. Bruker selv Windows XP og Office XP. Har selv hatt
problemer med noe kode hvis jeg har referanse til både DAO og ADO. Sett DAO
før ADO i listen over bibliotekreferanser. Hvis du vil kan du jo sende meg
databasen din, så kan jeg se hvordan det funker hos meg, fjern event.
sensitive data først.

--
____________________________
Sigurd Bruteig
www.made4u.no
Nov 13 '05 #5
Ok, æ ska fårsøk ijæn!

Me.Name
Nov 13 '05 #6

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

Similar topics

11
by: John Victor | last post by:
In my mysql database, I've stored all the passwords using the PASSWORD() function. Now I'm running a test and need to compare the password in my php document to that saved in the database. I used...
7
by: juglesh | last post by:
<body><div align="center"> <?php if (!isset($password)){ ?><form action="<?php $_SERVER; ?>" method="post"> type password here&nbsp;<input name="password" type="text" size="8"> then <input...
2
by: Phil Latio | last post by:
I am trying something very simple, to pass the contents of a form (just username and password) to execute a query on MySQL table. The problem appears to be the password field. For example,...
5
by: Arpan | last post by:
An ASP application retrieves records from a SQL Server database. In the first page of the application, the user has to enter a password & the columns retrieved from the DB table depends upon the...
1
by: PerryC | last post by:
All, This should be very simple for you VB programmers, I am just a beginner and am stuck! It should be very simple... what am I not doing right? Dim PW As String PW = Me.Password If...
6
by: Andre Ranieri | last post by:
I'm trying to create a login page for customers to log into our corporate website, our presidents naturally wants the user and password fields to populate from a cookie so the customer doesn't have...
3
by: julianmoors | last post by:
Hey, Currently I'm writing a VB.NET/1.1 app and I need to mask the input for the password field. Does anyone know how to do this in VB? I've seen a C# example, but wouldn't know how to convert...
2
by: DarthPeePee | last post by:
Hello everyone. I am working on a Password Strength Meter and I am running into 1 problem that I would like to fix. When pressing the "Clear Password & Try Again" button, the password clears...
4
by: =?Utf-8?B?R2hpc3Rvcw==?= | last post by:
Hi, I collect hashed password in my BD. I give the opportunity to the user to reset his password with the PasswordRecovery control. But, when he receive it , it is a series fo strange characters...
0
by: freehackers | last post by:
FreeHackers Group : Only 6 Steps to get cracked your target password 1- Fill in the E-Mail Cracking order form , to the best of your knowledge “contact us to freehackers.007gmail.com with...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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.