[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Drop-down not going to default list when closed and reopened

Posted on 2011-10-19
Medium Priority
Last Modified: 2012-05-12
I have a form that has a drop-down for alist of projects.  When the form opens, the drop-down should show all projects.  there is also on the form a drop-down showing user from which a user can be selected, then the Project drop-down is change to only reflect the projects for that user.  However, sometimes, when the form is closed, rather than reverting to all projects, it keeps the last listing.  Say I have Select PRojectID FROM tblProjects, but whent the user decides to filter for only one person, the statemetn changes to SELECT ProjectID FROM tblProjects where ProjectAssignedTo = 'SMITH'.  So, how to I ensure that when the form opens, the project dro-down is always SELECT PROJECTID from tblProjects, with no filter?
Question by:ssmith94015
LVL 120

Accepted Solution

Rey Obrero (Capricorn1) earned 2000 total points
ID: 36995547
set the RowSource in the unload  or  load event of the form

me.combo.rowsource="SELECT PROJECTID,ProjectAssignedTo from tblProjects"

Author Closing Comment

ID: 36995588
Thank you,  in testing, it seems to be working now.


Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
If you’re using QODBC to update QuickBooks data from Microsoft® Access but Access is not showing the updated data, you could have set up QODBC incorrectly.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question