clear form

vicgirl

Registered User.
Local time
Today, 07:13
Joined
Jul 13, 2004
Messages
33
Hi,
Does anyone know if there is clear_form function to set all texboxes or combo boxes empty in Access? Thanks in advance!
 
I'm not sure If I understand what you're saying, but if you want to clear a form than make a delete button.

Michael
 
How about:
Code:
  Dim MyForm As Form
  Dim ctl As Control
  Set MyForm = Screen.ActiveForm
  For Each ctl In MyForm.Controls  
    Select Case ctl.ControlType
      Case acTextBox, acComboBox
        ctl = Null
    End Select
  Next ctl
 

Users who are viewing this thread

Back
Top Bottom