G
GoBrowns!
I have a Text Box (EmployeeID) that automatically updates when a Combo Box
selection (EmployeeName) is selected. However, there are two issues with my
text box.
1. When I open the form, the text box is already populated with an
EmployeeID (the last one entered, I think), even though there is nothing in
the Combo Box yet. How can I get the form to open with that text box BLANK?
2. I have a code that clears the form once a submission is made. It clears
EVERY field... except for this text box. It even clears the combo box! How do
I get this text box to clear too?
Here is my code:
For Each ctl In Me.Controls
Select Case ctl.ControlType
Case acCheckBox, acComboBox, acTextBox
If ctl.ControlSource = "" Then
ctl.Value = Null
End If
Case Else
End Select
Next ctl
Works like a charm for everything but this EmployeeID text box...
THANKS FOR THE HELP!!!
selection (EmployeeName) is selected. However, there are two issues with my
text box.
1. When I open the form, the text box is already populated with an
EmployeeID (the last one entered, I think), even though there is nothing in
the Combo Box yet. How can I get the form to open with that text box BLANK?
2. I have a code that clears the form once a submission is made. It clears
EVERY field... except for this text box. It even clears the combo box! How do
I get this text box to clear too?
Here is my code:
For Each ctl In Me.Controls
Select Case ctl.ControlType
Case acCheckBox, acComboBox, acTextBox
If ctl.ControlSource = "" Then
ctl.Value = Null
End If
Case Else
End Select
Next ctl
Works like a charm for everything but this EmployeeID text box...
THANKS FOR THE HELP!!!