V vicgirl Registered User. Local time Today, 07:13 Joined Jul 13, 2004 Messages 33 Jul 22, 2004 #1 Hi, Does anyone know if there is clear_form function to set all texboxes or combo boxes empty in Access? Thanks in advance!
Hi, Does anyone know if there is clear_form function to set all texboxes or combo boxes empty in Access? Thanks in advance!
C Crilen007 Uhm, Title... *shrug* Local time Today, 07:13 Joined Jun 13, 2003 Messages 531 Jul 22, 2004 #2 Not that I know of.
U Ukraine82 Registered User. Local time Today, 07:13 Joined Jun 14, 2004 Messages 346 Jul 22, 2004 #3 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
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
pbaldy Wino Moderator Staff member Local time Today, 07:13 Joined Aug 30, 2003 Messages 36,157 Jul 22, 2004 #4 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
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