Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update successful..?

Status
Not open for further replies.

Kujen

Technical User
Oct 13, 2007
57
SE
Hi all,

I have the following to uppdate a password:

StrQueryName = "QueryGeneric"
StrSql = "ALTER LOGIN " & Me.strUserId & " WITH PASSWORD ='" & Me.strNewPassword & "'"


With CurrentDb.QueryDefs(StrQueryName)
.SQL = StrSql
.ReturnsRecords = False
.Execute
.Close
End With

How can I check if the update was successful?
I would be nice to inform the user:
"Your password has changed"

Kent J.
 
A simple method would be to do a select statement to pull the password for the record you updated and compare it to "Me.strnewPassword"

If they match then it was updated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top