473,387 Members | 1,703 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.

change user password

4
how to change users passwords in VB but not i SQL ?
Feb 21 '07 #1
8 6686
MMcCarthy
14,534 Expert Mod 8TB
how to change users passwords in VB but not i SQL ?
Is this an Access or a VB question? Please provide more information.

Mary
Feb 22 '07 #2
marcuu
4
Microsoft Access
Feb 22 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Microsoft Access
Without more information the best I can do is point you in the direction of this website.

http://www.jmwild.com/Accesssecurity.htm


Mary
Feb 23 '07 #4
marcuu
4
omg
i need a code in visual basic to change users passwords on usersecurity level in Ms access
i dont need an instruction how to run a creator but a vb code!
in sql thath code is
Expand|Select|Wrap|Line Numbers
  1. ALTER USER <UserName> PASSWORD <NewPassword> <OldPassword>
i need something like this but in Vb now you get it ?
Feb 23 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
omg
i need a code in visual basic to change users passwords on usersecurity level in Ms access
i dont need an instruction how to run a creator but a vb code!
in sql thath code is
Expand|Select|Wrap|Line Numbers
  1. ALTER USER <UserName> PASSWORD <NewPassword> <OldPassword>
i need something like this but in Vb now you get it ?
Marcuu

You have given very little information so far and we're not psychic so please don't be rude.

Where is the user table? Is it in Access or in a SQL backend. Is the security you are asking about the SQL level security or a linked table in Access?

Mary
Feb 23 '07 #6
marcuu
4
learn how to reply from ADezii
i have found the code on google groups
Expand|Select|Wrap|Line Numbers
  1. Public Function ChangePassword(strUser As String, _
  2.         strOldPassword As String, strNewPassword As String)
  3.     Dim wrk As DAO.Workspace
  4.     Dim usr As DAO.User
  5.  
  6.  
  7.     Set wrk = DBEngine(0)
  8.     Set usr = wrk.Users(strUser)
  9.  
  10.     'Change the password
  11.     usr.NewPassword strOldPassword, strNewPassword
  12.  
  13.     Set usr = Nothing
  14.     Set wrk = Nothing
  15. End Function
  16.  
  17.  
Feb 23 '07 #7
MMcCarthy
14,534 Expert Mod 8TB
I'm glad you found the code. And I'm sorry you feel unable to apologise for your rudeness. Please don't expect me to attempt to answer any future questions from you.
Feb 23 '07 #8
NeoPa
32,556 Expert Mod 16PB
Marcuu,
Not being able to speak the language well is no excuse for your rudeness.
We welcome all sorts on this web site, but most people - even the fairly ignorant ones - have at least the sense to be polite to those donating their free time to help them.
If this is beyond your capability then don't expect too much help here.

MODERATOR.
Feb 26 '07 #9

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

Similar topics

10
by: Fabrizio | last post by:
(Sorry for the crosspost, but I really don't know which is the right newsgroup!) Hi all, I try to change the password to a user that as to change the password at first logon: try {
6
by: Jan | last post by:
Hi: I have created a secured database for a client. For various reasons, I don't want the client to have full persmissions for the database; they aren't in the admins group. I have instead tried...
3
by: Xnet | last post by:
I need to change password of a local user of a W2003, without Active Directory. I need to do it from an application created with VB2005. Thanks!
1
by: Sankalp | last post by:
Hi, I am using VB 2005. My application has many data bound controls. The connection is stored in the app.config file. I want the application to start with a default connection string and while...
0
by: shellegreen | last post by:
Hello, I need help with some password changes that I have to do in some iPAQs. The company that I work has 3 models of iPAQ and 3 different versions of Windows Mobile (Microsoft Pocket PC...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.