Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    resego is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Botswana
    Posts
    5
    I give up I have been fighting this error message the whole day after getting everying running in the development DB now it gives an error when I try to encoporate in the operational DB.

    Help would be highly appreciated

    screen shots in the attachment and code below


    Private Sub Command6_Click()

    Dim strOldPassword As String
    Dim strSQL As String


    strOldPassword = DLookup("strEmpPassword", "PPADB Staff List", "[lngEmpID]=" & Me.Combo7)



    Select Case strOldPassword
    Case Is = Me.txtEmpPassword
    strSQL = "UPDATE 'PPADB Staff List' SET strEmpPassword='" & Me.Text2 & "' WHERE lngEmpID=" & Me.Combo7
    DoCmd.SetWarnings False
    DoCmd.RunSQL strSQL
    DoCmd.SetWarnings True
    MsgBox "Password has been changed", vbInformation, "Password Changed"
    Case Is <> Me.txtEmpPassword
    MsgBox "The Old Password doesnot match", vbInformation, "Type Correct Old Password"

    End Select

    End Sub

  2. #17
    resego is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Botswana
    Posts
    5
    sorry I could upload the screenshot, the error is as follows

    runtime error '3450'

    syntax arror in query. incomplete query


    and the following line get highlighted

    DoCmd.RunSQL strSQL

    but I suspect error in the following line

    strSQL = "UPDATE 'PPADB Staff List' SET strEmpPassword='" & Me.Text2 & "' WHERE lngEmpID=" & Me.Combo7

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to create a Password Form
    By heman85 in forum Forms
    Replies: 1
    Last Post: 07-07-2011, 11:49 AM
  2. Password change issues
    By westeral in forum Access
    Replies: 0
    Last Post: 11-28-2009, 09:20 AM
  3. Color change in form filed
    By miziri in forum Programming
    Replies: 3
    Last Post: 08-15-2009, 04:53 PM
  4. How to set a password to a form
    By heman85 in forum Security
    Replies: 0
    Last Post: 08-09-2008, 07:48 PM
  5. Change from old password to new password
    By richy in forum Security
    Replies: 0
    Last Post: 11-17-2005, 05:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums