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 / October 2005

Tip: Looking for answers? Try searching our database.

Updating a form with the most current information

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Barb - 20 Oct 2005 19:11 GMT
I have a main form showing appointment times filtered by date and staff
person. To add an appointment, a button is clicked, a new form appears, and
the user enters time, client, etc. I think I am saving the new record with

If Me.Dirty Then DoCmd.RunCommand acCmdSaveRecord

The form closes, and the user is looking at the main form. However, the only
way to see the updated information is to go to the next date and return to
the current one. Any suggestions on how to refresh the view?

Thanks,
Barb
Marshall Barton - 20 Oct 2005 20:40 GMT
>I have a main form showing appointment times filtered by date and staff
>person. To add an appointment, a button is clicked, a new form appears, and
[quoted text clipped - 5 lines]
>way to see the updated information is to go to the next date and return to
>the current one. Any suggestions on how to refresh the view?

You need to Requery the form after adding the new record.
You can do this in the button's code if the other form is
opened in dialog mode.  Otherwise, the other form will have
to do it after the record is saved.

Signature

Marsh
MVP [MS Access]

 
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.