Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box Vailidation - URGENT HELP NEEDED

Status
Not open for further replies.

T8JGT

IS-IT--Management
Feb 2, 2005
19
0
0
GB
Hi

This is rather complicated to explain, but here goes:

I have a form with 3 combo boxes on it:

- ITSQFDocumentName
- cboServRec
- QualityGate

What i want is in a simple sence

If ITSQFDocumentName = ORQ only allow selection from QualityGate else allow selection from cboServRec.

Can anybody please help.
 
Hello, in the after update event of your combo box -

Private Sub ITSQFDocumentName_AfterUpdate()

Select Case Me.ITSQFDocumentName

Case Is = "ORQ"
Me.QualityGate.Enabled = True
Me.cboServRec.Enabled = False

Case Else:
Me.cboServRec.Enabled = True

End Select

End Sub

Hope that helps
 
Private Sub ITSQFDocumentName_AfterUpdate()
Me!QualityGate.Enabled = (Me!ITSQFDocumentName = "ORQ")
Me!cboServRec.Enabled = (Me!ITSQFDocumentName <> "ORQ")
End Sub

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top