cagay said:Is anyone there who can show me a db sample of unbound data entry form. I want to control the builtin auto save of Access, because sometimes I don't want to save the data of my form..
Thanks,
cagay
cagay said:I want to control the builtin auto save of Access, because sometimes I don't want to save the data of my form.
SJ McAbney said:You can use the form's Before_Update() event to prevent dat being saved; there's absolutely no need for unbound data entry forms.
Pat Hartman said:As has already been suggested - you just need to use the FORM's BeforeUpdate event properly.
If IsNull(Me.SomeField) Then
Msgbox "SomeField is null. Please enter a value", vbOKOnly
Me.SomeField.SetFocus
Cancel = True
End If
If Me.SomeField > 55 And Me.SomeOtherField > 22 Then
Else
Msgbox "SomeField and/or SomeOtherField are out of range. Please fix.",vbOKONLY
Cancel = True
Me.SomeField.SetFocus
End If
Pat Hartman said:Sample edit code might be:
Code:If IsNull(Me.SomeField) Then Msgbox "SomeField is null. Please enter a value", vbOKOnly Me.SomeField.SetFocus Cancel = True End If If Me.SomeField > 55 And Me.SomeOtherField > 22 Then Else Msgbox "SomeField and/or SomeOtherField are out of range. Please fix.",vbOKONLY Cancel = True Me.SomeField.SetFocus End If