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 / Modules / DAO / VBA / December 2005

Tip: Looking for answers? Try searching our database.

Enabled remains true in subsequent records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rocky - 05 Dec 2005 23:48 GMT
On a form I am creating, in multiple areas, one combobox result enables a
second combobox.  I've done this in code on the AfterUpdate event of the
first box.  Additionally, using the OnCurrent Form Event and the NewRecord
property I reset all of the appropriate comboboxes back to jEnabled=False.  
However, if I go back to a record and edit it such that a second combobox is
enabled, when I navigate to the next record, the combobox remains enabled as
the new record is made current.  
How can I set the combobox to Enabled=False when I move to a subsequent but
not new record?
Tx
Rocky
Allen Browne - 06 Dec 2005 04:43 GMT
Add your code to the Current event of the Form as well.

This event fires each time you move record.

You may also want it in the Undo event of the form as well, examining the
OldValue of the control.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> On a form I am creating, in multiple areas, one combobox result enables a
> second combobox.  I've done this in code on the AfterUpdate event of the
[quoted text clipped - 10 lines]
> Tx
> Rocky
 
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.