By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,988 Members | 1,476 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,988 IT Pros & Developers. It's quick & easy.

password

lee123
100+
P: 556
How do you put a password on a delete button if you don't want anyone deleting any records on a form - is this possible?

lee123
Dec 30 '07 #1
Share this Question
Share on Google+
12 Replies


100+
P: 274
Hi,
If you have a main login/password form designed, you can call that form when a user presses the delete button. Then authenticate accordingly.
Good luck
Dec 30 '07 #2

Expert 5K+
P: 8,434
How do you put a password on a delete button if you don't want anyone deleting any records on a form - is this possible?
In what version of VB?
Dec 31 '07 #3

lee123
100+
P: 556
in version vb6

lee123
Dec 31 '07 #4

debasisdas
Expert 5K+
P: 8,127
At login create 2 kinds of login:

1. Admin users
2. Normal users

and make the delete button available only for admin users, not for others.
Dec 31 '07 #5

lee123
100+
P: 556
Well I figured out how to do this but I still have a problem. How would I make a way for the user to create his/her own password? Is that possible?

lee123
Dec 31 '07 #6

lotus18
100+
P: 866
Well I figured out how to do this but I still have a problem. How would I make a way for the user to create his/her own password? is that possible?

lee123
Yes it is possible but be sure the admin should monitor all the password of the user. : )

Rey Sean
Jan 1 '08 #7

werks
100+
P: 220
Well I figured out how to do this but I still have a problem. How would I make a way for the user to create his/her own password? Is that possible?

lee123

Hi,

just like "debasisdas" said just set the "cmdDelete.Enabled = False" when login as Normal User, and enabled it when login as Admin..


Better than Yesterday
Jan 1 '08 #8

debasisdas
Expert 5K+
P: 8,127
Well I figured out how to do this but I still have a problem. How would I make a way for the user to create his/her own password? Is that possible?

lee123
but how do you plan to save the username and password ?
Jan 2 '08 #9

jamesd0142
100+
P: 469
I've solved this problem by using an access database, and some home made encryption on the password field.
Jan 2 '08 #10

P: 59
i dont know any thing about vb6 but in vb.net you can use settings
Jan 3 '08 #11

daniel aristidou
100+
P: 491
i dont know any thing about vb6 but in vb.net you can use settings
A much simpler way of doing it would be to use an input box.
When the user clicks on the button a input box appears....if the password equals the input then it deletes the selected items.

Just suggestion ...also depends on the size and use of the program
Jan 3 '08 #12

daniel aristidou
100+
P: 491
but how do you plan to save the username and password ?
There is a post on reading passwords and username from a txt document (that can be encrypted) in the Howtos VB section.
I believe with some alterations to the code you find there, you could store the passwords and usernames. It probably requires some editing but it's nothing too difficult.

Daniel(~_~)
Jan 3 '08 #13

Post your reply

Sign in to post your reply or Sign up for a free account.