Not filling in text box's

Greyowlsl

Mlak Mlak
Local time
Today, 18:54
Joined
Oct 4, 2006
Messages
204
Hi,

The code below wont seem to do anything, doesn't fill in anything :mad:
Code:
Private Sub cboTypeOfService_AfterUpdate()

If Me.cboTypeOfService = "Warranty Exchange" Or Me.cboTypeOfService = "Dealer Exchange" Then
    Me![FAULT_WARRANTY_EX] = "1"
    Me.Refresh
    Me.txtCustomerComments = "Exchange"
Else: GoTo NO_FAULT_EX

End If

NO_FAULT_EX:
Me![FAULT_WARRANTY_EX] = "0"
Me.Refresh
If Me.txtCustomerComments = "Exchange" Then
    Me.txtCustomerComments = ""
  End If

end sub

Thanks,
Leon
 
What data is being held in the bound column of your Combo cboTypeOfService?

You could try;
Code:
Private Sub cboTypeOfService_AfterUpdate()

If Me.cboTypeOfService[B][COLOR="Red"].Text[/COLOR][/B] = "Warranty Exchange" Or Me.cboTypeOfService[B][COLOR="Red"].Text[/COLOR][/B] = "Dealer Exchange" Then
    Me![FAULT_WARRANTY_EX] = "1"
    Me.Refresh
    Me.txtCustomerComments = "Exchange"
Else: GoTo NO_FAULT_EX

End If

NO_FAULT_EX:
Me![FAULT_WARRANTY_EX] = "0"
Me.Refresh
If Me.txtCustomerComments = "Exchange" Then
    Me.txtCustomerComments = ""
  End If

end sub
 

Users who are viewing this thread

Back
Top Bottom