Option Group (1 Viewer)

wannabe

Registered User.
Local time
Today, 07:45
Joined
Feb 13, 2000
Messages
14
I have a form for Payments with an option group for the Method of Payment. Also in the option group are some bound textboxes. All with enable set to no. The first text box is below the option Check. The field is for the name on the Check. The other textboxes are after the option Credit Card. The fields are for CardType; CardNumber; ExpriationDate, etc. I have to following event procedure in the AfterUpdate area.
'If user chooses Check, enable paid by field.
'If user chooses credit card, enable credit card fields.

Const conCheck = 3
Const conCreditCard = 4

If PaymentMethod = conCheck Then
PaidBy.Enabled = True
Else
PaidBy.Enabled = False
End If

If PaymentMethod = conCreditCard Then
CardName.Enabled = True
CardType.Enabled = True
CardNumber.Enabled = True
Expiration.Enabled = True
Authorization.Enabled = True
CardName.SetFocus
Else
CardType.Enabled = False
CardName.Enabled = False
CardNumber.Enabled = False
Expiration.Enabled = False
Authorization.Enabled = False
End If
It works great for the Credit Card. However, the field below Check disappears as soon as I open the form. No matter which Option I select I cannot get that textbox field to reappear.
Any ideas would be greatly appreciated.
 

Users who are viewing this thread

Top Bottom