paulcherianc
Registered User.
- Local time
- Yesterday, 23:42
- Joined
- Aug 15, 2013
- Messages
- 86
Dear Experts!!!
I am developing an employee database and when i split it while running a VBA code it gives me the subject error
It's highlighting the append query statement.
It was working before i split it. Can anyone help me. Is there any endless loop in my coding. Please help!
Thanks in Advance!
I am developing an employee database and when i split it while running a VBA code it gives me the subject error

It was working before i split it. Can anyone help me. Is there any endless loop in my coding. Please help!
Code:
Private Sub Command308_Click()
Dim Ret As String, userInputValue As Integer
Ret = InputBox("Please enter the Password to Continue", "HRPro+")
If Ret = "" Then
MsgBox ("Action Cancelled!"), vbCritical, "HRPro+"
Else
If Ret = "Admin" Then
Dim rs As DAO.Recordset
Dim var As String
var = Me.EmpBadgeID
Forms![1AABEmployee_MasteR_Tab].RecordsetType = 0
Me.Requery
Set rs = Me.RecordsetClone
rs.FindFirst "EmpBadgeID = '" & var & "'"
Me.Bookmark = rs.Bookmark
Set rs = Nothing
DoCmd.SetWarnings False
DoCmd.OpenQuery "History Table Individual Update"
Me.[SubFormContainer].Locked = False
MsgBox "Current Details Exported to History Table. If you haven't made any profile changes kindly delete the history entry. Save after making any changes!", vbApplicationModal, "HRPro+"
DoCmd.SetWarnings True
Else
MsgBox ("Incorrect Password. Try Again!"), vbCritical, "HRPro+"
End If
End If
End Sub
Thanks in Advance!
Attachments
Last edited: