Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Make Combo-box drop down using code

Posted on 2000-03-12
3
Medium Priority
?
267 Views
Last Modified: 2011-09-20
Can I make a combo-box "drop- down" by using code? Like it does when the "select and item from the list" message appears after the notintlist event?
0
Comment
Question by:pbetts
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
BrianWren earned 400 total points
ID: 2610835
In code for the form with the combo on it, (let's say it's called cboData), use

     Me!cboData.Dropdown

If the combo is on a form and the code is not part of that form, (let's say the form is called frmData), use

    Forms!frmData!cboData.Dropdown

If the cobo is on a subform, and the code is part of the main form, and the control with the subform in it is called ctrlSubform, use

    Me!ctrlSubform.Form!cboData.Dropdown

Brian
0
 

Author Comment

by:pbetts
ID: 2610960
Thanx Brian...much appreciated
cheers from Oz
0
 

Author Comment

by:pbetts
ID: 2610964
hmmm... that was supposed to be 100points Brian..i'll have to throw you a lollly for another 90 :)
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Sometimes MS breaks things just for fun... In Access 2003, only the maximum allowable SQL string length could cause problems as you built a recordset. Now, when using string data in a WHERE clause, the 'identifier' maximum is 128 characters. So, …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
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…
Suggested Courses
Course of the Month20 days, 23 hours left to enroll

810 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