Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 18th, 2005, 05:55 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default Refresh Parent Subform

Hopefully someone has experienced something like this before.

Form1 contains events has a subform which contains all employees linked to the event. A combobox lets the user pick from all employees and add them to the subform - The subform is refreshed and the name appears.

If the user needs to add a new Employee, he clicks a button which opens the Employee entry form. When closed, the app adds the Employee to the tabel to which the subform is linked. However I cannot get the form to refresh. The employee is on the subform, because if I add an existing employee, both then show up, and if I close the Form and reopen it, the employee appears. I have tried refreshing, requerying, repaint and even closing and opening the Events form programatically - I just can't get the subform to refresh. Anyone have any ideas?

Thanks

Mike

Mike
EchoVue.com
__________________
Mike
EchoVue.com
Reply With Quote
  #2 (permalink)  
Old October 18th, 2005, 09:59 PM
Friend of Wrox
 
Join Date: Jan 2005
Location: Kansas City, Missouri, USA.
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

Mike,

Try refreshing the parent form

Forms![ParentForm].refresh
then refresh the subform:

Forms![ParentForm].[Subform].form.refresh

Kevin

dartcoach
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pop-Up Close / Refresh Parent cmiller HTML Code Clinic 7 October 6th, 2011 05:43 AM
Parent Page Refresh crmProg Visual Studio 2005 1 February 9th, 2007 09:56 AM
Parent Page Refresh crmProg ASP.NET 2.0 Professional 0 January 15th, 2007 10:58 PM
Unnecessary refresh of parent window swati_joshi ASP.NET 1.0 and 1.1 Professional 7 September 19th, 2006 08:13 AM
How to refresh parent page amolpayal Javascript How-To 1 August 2nd, 2006 05:03 AM



All times are GMT -4. The time now is 02:11 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.