Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
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 September 29th, 2004, 01:42 PM
Authorized User
Join Date: Jun 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing a Variable to a SubForm in Access


I have a form (SCR_NEW) with a subform (SRC_LINKS). On form SCR_NEW I have a text box (txtSCRID) whose value I need in the subform.
How can I pass along that value to the subform?

I tried adding a hidden text box on the subform but could not get that to work.

Any suggestions would be greatly appreciated.


Old September 29th, 2004, 03:53 PM
Authorized User
Join Date: Jun 2003
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts

I figured it out finally!

I used the hidden text box "txtSub" on the subform.
txtSub = Forms![SCR-New].[SCR_Links]!txtSCRID.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access VBA passing to subform ayazhoda Access VBA 1 July 11th, 2007 07:45 AM
Passing value to subform using SQL ayazhoda Access VBA 0 July 10th, 2007 04:21 AM
Passing variable to a public variable Hudson40 Access VBA 2 February 25th, 2005 06:23 AM
Passing a variable mrideout BOOK: Beginning ASP.NET 1.0 3 August 6th, 2004 02:57 PM
Passing a variable trekmp ADO.NET 1 March 4th, 2004 01:57 PM

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