By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,510 Members | 1,504 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,510 IT Pros & Developers. It's quick & easy.

combo box selection reveals text box

P: 37
Hi everyone,
I'm having trouble getting my head around how to make a text box appear from a combo box selection. The combo box lists methods of payment eg cash, visa, mastercard. If visa or mastercard is selected I would love some text boxes to appear for credit card details. I did it with check boxes but cant make it go for combo boxes.
Thanks for any help. Eddie
Jun 1 '07 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 344
Hi everyone,
I'm having trouble getting my head around how to make a text box appear from a combo box selection. The combo box lists methods of payment eg cash, visa, mastercard. If visa or mastercard is selected I would love some text boxes to appear for credit card details. I did it with check boxes but cant make it go for combo boxes.
Thanks for any help. Eddie
Put your text boxes on the form and turn visible off for them. Say they are called strCardOne, strCardTwo etc

In the after_update event of the combo box write this

if comboBox="Visa" or comboBox="Mastercard" then
strCardOne.visible=true
strCardOne.visible=true
end if

and then turn them invisible in the on_current event of the form when you go to a new record
Jun 1 '07 #2

P: 37
Thanks Lysander, you're a star
Jun 1 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.