G
Guest
Hello, I have a question and I have no clue on how to do it. I have a combo
box named cboEmployees and this is what I want to do is if I dont select
anything from the list in the cboEmployees then the two buttons named
cmdIndividualEmployeeData and cmdIndividualEmployeePercent will not show. Now
I want the buttons "cmdIndividualEmployeeData and
cmdIndividualEmployeePercent" to be visable but whited out and not clickable
but if I select something from the cboEmployees menu the they will show
regularly. I have this on a database section already but it was pre-made and
I cant figure out how to do it. Here is the code from the other database I
think that makes it work and with my names in it but it doesnt work for me in
the new database. What and where am I missing code? Thanks!
Private Sub cboEmployees_AfterUpdate()
If IsNull(Me.cboEmployees) Then
Me.TimerInterval = 0
Me.FramePropertyValue.Enabled = False
Else
Me.FramePropertyValue.Enabled = True
End If
End Sub
Private Sub FramePropertyValue_AfterUpdate()
If Me.ActiveControl <> 0 Then
Me.cmdIndividualEmployeeData.Enabled = True
Me.cmdIndividualEmployeeData.ForeColor = 0
Else
Me.cmdIndividualEmployeeData.Enabled = False
Me.cmdIndividualEmployeeData.ForeColor = 255
End If
End Sub
box named cboEmployees and this is what I want to do is if I dont select
anything from the list in the cboEmployees then the two buttons named
cmdIndividualEmployeeData and cmdIndividualEmployeePercent will not show. Now
I want the buttons "cmdIndividualEmployeeData and
cmdIndividualEmployeePercent" to be visable but whited out and not clickable
but if I select something from the cboEmployees menu the they will show
regularly. I have this on a database section already but it was pre-made and
I cant figure out how to do it. Here is the code from the other database I
think that makes it work and with my names in it but it doesnt work for me in
the new database. What and where am I missing code? Thanks!
Private Sub cboEmployees_AfterUpdate()
If IsNull(Me.cboEmployees) Then
Me.TimerInterval = 0
Me.FramePropertyValue.Enabled = False
Else
Me.FramePropertyValue.Enabled = True
End If
End Sub
Private Sub FramePropertyValue_AfterUpdate()
If Me.ActiveControl <> 0 Then
Me.cmdIndividualEmployeeData.Enabled = True
Me.cmdIndividualEmployeeData.ForeColor = 0
Else
Me.cmdIndividualEmployeeData.Enabled = False
Me.cmdIndividualEmployeeData.ForeColor = 255
End If
End Sub