Automatic filling fields (1 Viewer)

QueryStumped

Registered User.
Local time
Today, 16:45
Joined
Mar 22, 2017
Messages
60
Creating a form, one field is a combo box, either available or not available. Need to have another field to automatically update to yes or no based on the combo box. I do not know SQL. Any guidance is very appreciated.
 

jdraw

Super Moderator
Staff member
Local time
Today, 16:45
Joined
Jan 23, 2006
Messages
15,379
Please tell us in plain English what you are trying to do --no database jargon. Just some context, not how you have tried to do something. It's the something that users want to know. There may be options for how.
 

QueryStumped

Registered User.
Local time
Today, 16:45
Joined
Mar 22, 2017
Messages
60
I have a form where the user will choose available or unavailable from a combo box. I want to automatically have another box that will have a field to show Yes or No depending on what they chose from the combo box field. How do I program that, based on the combo box?
 

bastanu

AWF VIP
Local time
Today, 13:45
Joined
Apr 13, 2010
Messages
1,402
In the AfterUpdate event of the combo box add something like this (use your own control names):
Code:
Private Sub cboAvailable_AfterUpdate()

me.YesNoFieldControl=iif(Me.cboAvailable="Available","Yes","No")


End Sub

Cheers,
Vlad
 

QueryStumped

Registered User.
Local time
Today, 16:45
Joined
Mar 22, 2017
Messages
60
Thank you! I really appreciate the help. I will have to fix it when I get back to work.
 

Users who are viewing this thread

Top Bottom