Question 1. Do I replace the code I put in the ON OPEN EVENT with:
Private Sub VerifyNameAndNumber()
If Len(Me.ProjectName) > 0 And Len(Me.ProjectNumber) > 0 Then
Dim c As Control
For Each c In Me.Section(0).Controls
If c.ControlType = acTextBox Or c.ControlType = acCommandButton Then
'MsgBox c.Name
c.Enabled = True
End If
Next c
End If
No, don't you remember?
What did I post here 33293015 ?
Here is the entire post again:
<I think we need to add some code to disable the Comboboxes?>
Bingo!
So try this:
Private Sub VerifyNameAndNumber()
If Len(Me.ProjectName) > 0 And Len(Me.ProjectNumber) > 0 Then
Dim c As Control
For Each c In Me.Section(0).Controls
If c.ControlType = acTextBox Or c.ControlType = acCommandButton Or c.ControlType = acCombobox Then
'MsgBox c.Name
c.Enabled = True
End If
Next c
End If
;-)
No the $50,000 Dollar question is:
Can you adapt this to code *enable the comboboxes in the "VerifyNameAndNumber" sub procedure?
;-)
Jeff
\