I have the following code:
Code:
Private Sub Command26_Click()
DoCmd.GoToRecord , , acNewRec
Dim c As Control
' Enumerate Controls collection.
For Each c In Me.Controls
If c.ControlType = acTextBox Then
c.Value = Null
End If
Next c
Me.txtCheckNumber.Visible = False
Me.txtDateItem.Visible = False
Me.Deduct_Add.Value = Null
End Sub
This code clears all of the fields, but I wanted to clear everything EXCEPT two fields: ACHGROUP and PDATE. The fields that I DO want cleared are: SITE, PAMOUNT, Deduct/Add, DESC, DESC1, DESC1, Initial.
Anyone have any ideas? Any help is appreciated!