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

Tip: Looking for answers? Try searching our database.

refresh/reload/requery a form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 06 Jul 2007 03:05 GMT
I have a form that is a list of clients (frmClientList)(not editable).
I have it set so if you double click on any last name it opens a client
profile form (frmClientProfile) for that client when they make changes to
client info I want to close the form (frmClientProfile) and have the updated
info show on the list of clients (frmClientList).
I am thinking I can put a line of code on the click event of the button that
closes (frmClientProfile) but I do not know how to write it.
also I have noticed that when I do close (frmClientProfile) and try to
manually refresh (F9) the form (frmClientList) that is DOES NOT update - I
have to close (frmClientList) and reopen to see the changes.

Any help here will be appreciated.

Thanks in advance
D
tina - 06 Jul 2007 04:01 GMT
on the Close button on frmClientProfile, try adding the following code to
the Click event procedure, as

   If Me.Dirty Then Me.Dirty = False
   DoCmd.Close , , acSaveNo
   DoCmd.SelectObject acForm, "frmClientList", False
   Forms!frmClientList.Requery

hth

> I have a form that is a list of clients (frmClientList)(not editable).
> I have it set so if you double click on any last name it opens a client
[quoted text clipped - 11 lines]
> Thanks in advance
> D
Dave - 06 Jul 2007 05:08 GMT
That did what I wanted.
Thanks much
D
> on the Close button on frmClientProfile, try adding the following code to
> the Click event procedure, as
[quoted text clipped - 24 lines]
>> Thanks in advance
>> D
tina - 07 Jul 2007 03:36 GMT
you're welcome  :)

> That did what I wanted.
> Thanks much
[quoted text clipped - 27 lines]
> >> Thanks in advance
> >> D
 
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



©2009 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.