Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 July 28th, 2008, 11:16 AM
Authorized User
 
Join Date: Dec 2003
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sub Form Problems

I have a Main form one sub form the main form is relate to Employees table Employee No.(PK) one sub form in sub form have two tab controls one is family details another is Department details family details is related to family table and Department details in Department table Now problems is when I go to see the Employees details in Main form I want particulars employee no. family, department details in sub form in Main form I write the one particular fields on exit event like below

Private Sub cmbCF_Exit(Cancel As Integer)
DoCmd.OpenForm ("subFrm")
End Sub

What I want to do write code in Main form to see particular employee no. family, department details in sub form


Mohamed Mohiddin
Officer
__________________
Mohamed Mohiddin
Officer
 
Old July 29th, 2008, 04:51 PM
Friend of Wrox
 
Join Date: Feb 2007
Posts: 163
Thanks: 0
Thanked 2 Times in 2 Posts
Default

To access subform objects in the main form's Project, try one of the following:

Me("Subform Name").Form.[Object Name].Value

Form("Subform Name").Form.[Object Name].Value






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems while opening form anukagni Access 4 March 31st, 2008 05:54 AM
Form Corruption / Problems with Where Clause jeremy1048 Access 7 October 22nd, 2007 09:52 AM
Form Problems stu9820 ASP.NET 1.0 and 1.1 Professional 14 January 10th, 2005 10:43 AM
Splash form problems mwphillips Beginning VB 6 1 November 19th, 2003 05:02 AM





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