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

combo box

P: 65
i am trying to get a form to autoupdate whenever an employee leaves the company. when the employee leaves, the "enddate" box is filled in with their last day and a combo box is to be filled in saying "no" for currently employed.

i am wondering how to get the combobox to automatically go to "no" when the enddate is filled in and "yes" when the enddate is empty

any and all ideas/solutions/suggestions appreciated

thanks
Jul 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: 65
this is how you do it:


Sub YourTextControl_AfterUpdate( )
If IsNull(Me!YourTextControl) or Len(ME!YourTextControl)<1 Then
Me!YourComboControlName = "No"
Else
Me!YourComboControlName = "Yes"
End If
End Sub
--
Of course have the combo control default to "no" for new records
---
Jul 12 '06 #2

Post your reply

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