Hi to all......
I have a very stranger problem
I have a access 2003 form for add in a multi user enviroment (3 users)
To be absolutely sure that the user will fill all the fields i want i have make a subroutine that check 7 fields Validate_Record
After 1 month without any problem today 1 user call me and said that he has a problem.
Somehow he add a record in the table without fill all my required fields
My close form sub is
Private Sub Close_Form_Click()
On Error GoTo Err_Close_Form_Click
Dim canVal As Integer
If Parm_Open_Form = 3 Then
DoCmd.Close
Exit Sub
End If
If Me.Dirty = True Then
canVal = MsgBox("Do you want to save the changes.", vbYesNo + vbExclamation, "Close Form")
If canVal = vbNo Then
Me.Undo
Else
Error_Flag = False
Call Validate_Record
If Error_Flag = True Then Exit Sub
End If
End If
DoCmd.Close
Call Forms("customer").Requery_customer
Exit_Close_Form_Click:
Exit Sub
Err_Close_Form_Click:
MsgBox Err.Description
Resume Exit_Close_Form_Click
End Sub
Anyone has any idea why this happend???
Thanks and regards and sorry for my English.....
I have a very stranger problem
I have a access 2003 form for add in a multi user enviroment (3 users)
To be absolutely sure that the user will fill all the fields i want i have make a subroutine that check 7 fields Validate_Record
After 1 month without any problem today 1 user call me and said that he has a problem.
Somehow he add a record in the table without fill all my required fields
My close form sub is
Private Sub Close_Form_Click()
On Error GoTo Err_Close_Form_Click
Dim canVal As Integer
If Parm_Open_Form = 3 Then
DoCmd.Close
Exit Sub
End If
If Me.Dirty = True Then
canVal = MsgBox("Do you want to save the changes.", vbYesNo + vbExclamation, "Close Form")
If canVal = vbNo Then
Me.Undo
Else
Error_Flag = False
Call Validate_Record
If Error_Flag = True Then Exit Sub
End If
End If
DoCmd.Close
Call Forms("customer").Requery_customer
Exit_Close_Form_Click:
Exit Sub
Err_Close_Form_Click:
MsgBox Err.Description
Resume Exit_Close_Form_Click
End Sub
Anyone has any idea why this happend???
Thanks and regards and sorry for my English.....