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.

Execute Method question...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NWO - 17 Dec 2005 21:24 GMT
Hello Access Programming Community.

NWO here sending this Q on behalf of a colleague...

When a database table is updated using the VBA connection object “execute
method” the related tables are updated immediately but objects such list,
combo box, etc. does not reflect the changes until I re-load the form that
contains the objects. Sometimes the list box would display #delete in the
record if a delete command is executed.

How can I get the all objects on a form to reflect changes to the related
tables immediately after updating the table?

Thank you.

NWO :)
Ofer - 17 Dec 2005 21:41 GMT
You can do that by refreshing the list box or combo after executing the query
(SQL), using

Me.ListName.Requery

Or
Forms![FormName]![ListName].Requery

Signature

Please respond to the group if your question been answered or not, so other
can refer to it.
Thank you and Good luck

> Hello Access Programming Community.
>
[quoted text clipped - 12 lines]
>
> NWO :)
NWO - 17 Dec 2005 21:57 GMT
Thanks Ofer, you answered the question.

Happy Holidays!

NWO :)
------------------

> You can do that by refreshing the list box or combo after executing the query
> (SQL), using
[quoted text clipped - 20 lines]
> >
> > NWO :)
 
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.