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 / New Users / April 2006

Tip: Looking for answers? Try searching our database.

Commiting changes on a Form using VB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Isis - 12 Apr 2006 16:26 GMT
I noticed that changes made to fields are only commited to the Tables when
you move off the current record - Cam I commit the changes in VB code ?

Also I have a combo Box that lists records in another Table - when I add a
new record to this Table the combo Box does not get updated until I exit
the form and re display it - can this be done automatically without the
need for closing the form.

Thanks
Ken Sheridan - 12 Apr 2006 18:17 GMT
To save the current record use:

RunCommand acCmdSaveRecord
or:
Me.Dirty = False

To update the combo box's list requery the control with:

Me,YourComboBox.Requery

Ken Sheridan
Stafford, England

> I noticed that changes made to fields are only commited to the Tables when
> you move off the current record - Cam I commit the changes in VB code ?
[quoted text clipped - 5 lines]
>
> Thanks
Isis - 14 Apr 2006 13:02 GMT
=?Utf-8?B?S2VuIFNoZXJpZGFu?= <KenSheridan@discussions.microsoft.com>
wrote in news:20D851B7-EA0A-468B-8F22-D6D9892D8E18@microsoft.com:

> To save the current record use:
>
[quoted text clipped - 19 lines]
>>
>> Thanks

Thanks for the info Ken.

Regards
 
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.