Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / January 2005

Tip: Looking for answers? Try searching our database.

"General" activecontrol.dropdown function?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MarkD - 13 Jan 2005 01:39 GMT
Using Access2000.

I have a form with a bunch of dropdowns. I know I can add
the Me.activecontrol.dropdown event to each dropdown event
(on the GotFocus event or something), but I was wondering
if there was an "general event" that fires whenever the
user moves from one control item to the next. That way, I
can just 1) check if the control is a combobox and 2) if
it is, run the me.activecontrol.dropdown method.

Thanks much,
-Mark
PC Datasheet - 13 Jan 2005 04:09 GMT
Add the following sub to your form:
Sub CbxDropDown()
Me.activecontrol.dropdown
End Sub

Hold the ShiftKey down and select all the comboboxes. Open properties and go
to the Events tab. Type the following into the Enter event:
= CbxDropDown()

Each of your comboboxes will now drop down when you enter the combobox.

--
                                       PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
                             resource@pcdatasheet.com
                                www.pcdatasheet.com

> Using Access2000.
>
[quoted text clipped - 8 lines]
> Thanks much,
> -Mark
MarkD - 14 Jan 2005 21:51 GMT
Hi,

Thanks for your reply. Wroks great, except I had to use =
[CbxDropDown]

-Mark

>-----Original Message-----
>Add the following sub to your form:
[quoted text clipped - 28 lines]
>
>.
PC Datasheet - 14 Jan 2005 23:25 GMT
Hi Mark,

Check my response again - I had the equal sign!   :)

Steve
PC Datasheet

> Hi,
>
[quoted text clipped - 46 lines]
> >
> >.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.