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 May 22nd, 2006, 03:23 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default set form on subform

Hi,
I wont create a dynamic program and when i select a data i hope to visualize in a subform the detail of selected data.

i try this metod:
   set subform.form = new form_detail

but the form property on subform is read only.

you can know a possible soluction?
I don't wont create many subform for any details forms.

----------------------
http://www.interbyte.it
 
Old May 22nd, 2006, 04:12 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have find this method:

   subform.SourceObject = "name form"

but this have a problem because don't create a new istance of form but refers it.

this soluction don't permit set in subform a new istance of main form, and when i set:
      mainform.subform.SourceObject ="name mainform"

the subform don't view a form but is white.

----------------------
http://www.interbyte.it
 
Old May 23rd, 2006, 03:08 PM
Authorized User
 
Join Date: May 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If your data share the same table structure and you only want to refresh the data, I will use
yourSubForm.Form.RecordSource to update the data.

??VBA and ACCESS ??





Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing a form with a subform in it jcalfg Access 1 July 25th, 2006 03:40 PM
Open a subform from a form Vision G Access 5 May 13th, 2006 04:21 AM
Cant print when the form become subform yikchin Access 6 November 22nd, 2005 10:22 PM
How to link form and subform method Access 1 July 30th, 2005 02:19 AM
form/subform problem chacquard Access VBA 5 June 21st, 2004 10:45 PM





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