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 / June 2007

Tip: Looking for answers? Try searching our database.

AfterUpdate Requery

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James Bailey - 08 Jun 2007 01:38 GMT
I'm having a problem with Requery.  I have 7 combo boxes that are cascading.
One gets it's data from the previous one.  The first three requery and blank
out the combo boxes if the item that was selected isn't in the new list.
Although the last four do requery and get a new list, they keep the previous
selected text even if it isn't in the new list.  I set the Limit To List
option but that didn't have an effect on the last four combo boxes. I posted
the different ways I've tried requerying below.  The only one that seems to
remove the data is DoCmd.Requery but only does it for Client, and Contract.

Any  help is much appreciated!

Private Sub cbManf_AfterUpdate()
Me("cbEquipType").Requery
End Sub

Private Sub cbVessel_AfterUpdate()
DoCmd.Requery "cbClient"
DoCmd.Requery "cbContract"
DoCmd.Requery "cbManf"
DoCmd.Requery "cbEquipType"
End Sub

Thanks.
--
Infotech
Carl Rapson - 08 Jun 2007 15:49 GMT
You can set a combo box to Null, which should clear any selection:

cbEquipType = Null

Carl Rapson

> I'm having a problem with Requery.  I have 7 combo boxes that are
> cascading. One gets it's data from the previous one.  The first three
[quoted text clipped - 22 lines]
> --
> Infotech
James Bailey - 13 Jun 2007 14:46 GMT
At first your solution caused some problems with data getting lost in all of
the records that were displayed by the form but once I set it Data Entry to
"Yes" it worked..

Thanks!

> You can set a combo box to Null, which should clear any selection:
>
[quoted text clipped - 9 lines]
>> set the Limit To List option but that didn't have an effect on the last
>> four combo boxes.
 
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.