Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 28th, 2005, 03:35 AM
Authorized User
 
Join Date: Apr 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to lizhaskin
Default Requery SubForm

Hi
Can anyone help? I have a form (BookingMain) with a 4-page tab control. What I need to achieve is that when the user clicks on the 3rd page tabControl, that the subform on page 3 (ExistingBookings) will requery. How do I do this?
Liz


 
Old November 28th, 2005, 02:19 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Suppose the tab control was called ctlMyTabControl. Then you can put something like this on the tab control's ON CLICK event.

If Me.ctlMyTabControl = 2 Then
    Me.ExistingBookings.Requery
End If

Note that the third tab control is no. 2. They start at zero.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Subform Record Saved, Update/Requery Form controls CB-VTXer Access VBA 2 August 6th, 2007 02:35 PM
Requery a subform aware Access 3 December 27th, 2005 12:25 PM
Filter Subform B Based on Field in Subform A SerranoG Access VBA 3 June 18th, 2004 12:23 AM
requery subform bpete Access VBA 5 March 30th, 2004 09:31 AM
SubForm Requery ppenn Access VBA 2 August 7th, 2003 02:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.