473,405 Members | 2,349 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,405 software developers and data experts.

Password protect a VB Front end

Hey,

I have a complete frontend setup, the first window/form
that shows up gives you an option of 3 databases. One of
them will only need to be accessed by about 2 - 3 people
within our organization. so i want to password protect it.

How can i do this?

I was think i can just have a funtion so that when they
click on the button for the database i want password
protected a box pops up?

Any help would be great.

Thank you.
Nov 20 '05 #1
5 1545
"Trev" <an*******@discussions.microsoft.com> wrote...
I was think i can just have a funtion so that when they
click on the button for the database i want password
protected a box pops up?


Hi... Network security is a large topic.

You can certainly implement a pop-up form easily and typically the routine
would validate against a table in your database. You usually want to make
certain that the user can't get to the database some other way (like
clicking on a folder) and discover the password that way.

But... I was going to suggest one small modification. Rather than prompt
when a user clicks on the one that "requires" a password... you might want
to require everybody to log in (it can be a simple procedure) to the app.
That way the database that shouldn't be accessed by most people wouldn't
even appear on the form.

If they are unaware of it's existance they won't spend time trying to get to
it.

Tom

Nov 20 '05 #2
We are not really that worried about the security as the
info it not that sensitive. On the other 2 databases the
1, its for our staffs trainging details and will be
accessed by our HR Manager, and maybe our induction
supervisor.

How can i program it to look for the password in a txt
box on another form?

This is what i currently have for my connection:

Private Function ConnectStringBuild() As String
Dim strConn As String

strConn &= "Data Source=ServerName;"
strConn &= "Initial Catalog=Train;"
strConn &= "User ID=User;"
strConn &= "Password=Password"

Return strConn
End Function

Any help would be great. Thanks.
-----Original Message-----
"Trev" <an*******@discussions.microsoft.com> wrote...
I was think i can just have a funtion so that when they
click on the button for the database i want password
protected a box pops up?
Hi... Network security is a large topic.

You can certainly implement a pop-up form easily and

typically the routinewould validate against a table in your database. You usually want to makecertain that the user can't get to the database some other way (likeclicking on a folder) and discover the password that way.

But... I was going to suggest one small modification. Rather than promptwhen a user clicks on the one that "requires" a password... you might wantto require everybody to log in (it can be a simple procedure) to the app.That way the database that shouldn't be accessed by most people wouldn'teven appear on the form.

If they are unaware of it's existance they won't spend time trying to get toit.

Tom

.

Nov 20 '05 #3
Try This

Create A Password Form which has text boxes for UserID,
Password etc, an OK and Cancel Button.

Depending on where you store the password details you can
either hard code them in or store in a security database
or file.
Set Password Property of TextBox To Display Security
Characters (i.e. *****)

So when the user runs the form

Dim F As New Security Form

If F.ShowDialog= DialogResult.OK Then
'Code In Here To Set or retrieve Password and userID
information
Dim UserID As String
UserID= GetValues
Dim Password As String
Password= GetValues
If (F.UserIDTextBox.Text= UserID)And_
(F.PasswordTextBox.Text= Password) Then
Dim NextForm As New Form
NextForm.Show
Else
End 'Ends Application
End If
Else
End 'Cancel Program
End If
-----Original Message-----
Hey,

I have a complete frontend setup, the first window/form
that shows up gives you an option of 3 databases. One of
them will only need to be accessed by about 2 - 3 people
within our organization. so i want to password protect it.

How can i do this?

I was think i can just have a funtion so that when they
click on the button for the database i want password
protected a box pops up?

Any help would be great.

Thank you.
.

Nov 20 '05 #4
Excellent that helps, thanks.
-----Original Message-----
Try This

Create A Password Form which has text boxes for UserID,
Password etc, an OK and Cancel Button.

Depending on where you store the password details you caneither hard code them in or store in a security database
or file.
Set Password Property of TextBox To Display Security
Characters (i.e. *****)

So when the user runs the form

Dim F As New Security Form

If F.ShowDialog= DialogResult.OK Then
'Code In Here To Set or retrieve Password and userID
information
Dim UserID As String
UserID= GetValues
Dim Password As String
Password= GetValues
If (F.UserIDTextBox.Text= UserID)And_
(F.PasswordTextBox.Text= Password) Then
Dim NextForm As New Form
NextForm.Show
Else
End 'Ends Application
End If
Else
End 'Cancel Program
End If
-----Original Message-----
Hey,

I have a complete frontend setup, the first window/form
that shows up gives you an option of 3 databases. One ofthem will only need to be accessed by about 2 - 3 peoplewithin our organization. so i want to password protect it.
How can i do this?

I was think i can just have a funtion so that when they
click on the button for the database i want password
protected a box pops up?

Any help would be great.

Thank you.
.

.

Nov 20 '05 #5
"Trev" <an*******@discussions.microsoft.com> wrote...
We are not really that worried about the security as the
info it not that sensitive. On the other 2 databases the
1, its for our staffs trainging details and will be
accessed by our HR Manager, and maybe our induction
supervisor.


I noticed another reply had the code in it so on that front you seem to be
set... though I believe I noticed that the application exists on an
incorrect password and that's a bit much if they are otherwise allowed to
use the system.

BTW I think the password itself might be overkill given your needs. You can
just provide a "key" to the couple of people who need it in the form of a
value in an configuration file... or even just test for the presence of the
file itself.

The password isn't a problem but if the special users don't need to key it
in all the time it is just easier. You would make a point of giving those
people the special key file, your software would see it is there and the
database options would appear without the need to key in a password every
time.

Just a thought,
Tom
Nov 20 '05 #6

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

Similar topics

6
by: Lou | last post by:
Please can someone put me out my misery! Im trying to find a multiple user/password protection script that will redirect the specific user to a specific directory. At the moment I have set up...
3
by: Narlen | last post by:
Hi there, I don't know much about web design but I proudly managed to password protect a page on my site. Later I realized that everyone looking at the source in any web browser can see the...
1
by: Sigurd Bruteig | last post by:
Hi! I have a passwordprotected backend. I just realised that you can download a cracking application that can crack a password with up to 18 signs. I have tryed it and it works. My question is: is...
3
by: Chris | last post by:
I have a frontend that has some tables which are linked to a backend. Now I want to make the backend password protected and when I try to run it password protected I can't open it. In the first...
6
by: Mike | last post by:
I have developed a program that has the backend on a server and multiple users have the front end at their individual computers. I know how to set a password on the backend. How can I implement...
21
by: solomon_13000 | last post by:
I am using ms access database and asp 3.0 as my front end. In my database there is a table called account and a field called password. How do I protect the password stored in the database.
6
by: chsadaki | last post by:
Hello I have a problem in retrieving a row form a table that I created in mysql db. I insert these values in the table 'Bell',password('123'). But the problem is in my php application I cant...
22
by: teejayem | last post by:
Hi, I am new to programming with databases and was wanting some help. Is there any way to password protect an access database and access sent sql commands to it via vb.net code? Any help...
16
by: Greg (codepug | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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,...
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
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...
0
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
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...
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...

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.