dynamictiger
Registered User.
- Local time
- Today, 14:23
- Joined
- Feb 3, 2002
- Messages
- 270
I have a form for entry of name and address details on the form I have a go back button that closes the form.
I have a function to iterate through the controls and if they are empty returns blnCancel.
Currently my code on the go back button is
Call CheckEmpty(blnCancel)
If blnCancel Then
DoCmd.Close acForm, "frmClientDetail", acSaveNo
Else
DoCmd.Close acForm, "frmClientDetail"
End If
I thought this would stop an incomplete record from saving. It doesn't and I don't know why.
I have a function to iterate through the controls and if they are empty returns blnCancel.
Currently my code on the go back button is
Call CheckEmpty(blnCancel)
If blnCancel Then
DoCmd.Close acForm, "frmClientDetail", acSaveNo
Else
DoCmd.Close acForm, "frmClientDetail"
End If
I thought this would stop an incomplete record from saving. It doesn't and I don't know why.