PC Review


Reply
Thread Tools Rate Thread

Change subform source ojbect.

 
 
=?Utf-8?B?UmF5IE1lYWQ=?=
Guest
Posts: n/a
 
      14th Jun 2005
Help! How do I change the subform "Main subform" source object to "test1
subform"? programatically. I can find code to change the record source, but
I actually want to change the source object instead.

Thanks for your help.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?T2Zlcg==?=
Guest
Posts: n/a
 
      14th Jun 2005
Try this
me.[SubFormName].sourceobject="NewSource"


"Ray Mead" wrote:

> Help! How do I change the subform "Main subform" source object to "test1
> subform"? programatically. I can find code to change the record source, but
> I actually want to change the source object instead.
>
> Thanks for your help.

 
Reply With Quote
 
=?Utf-8?B?UmF5IE1lYWQ=?=
Guest
Posts: n/a
 
      14th Jun 2005
Many thanks. I tried the post and encounter a runtime error:

Runtime 2465
Microsoft Office Access can't find the field 'l' referred to in your
expression.

When I click on debug, that line is highlighted

"Ofer" wrote:

> Try this
> me.[SubFormName].sourceobject="NewSource"
>
>
> "Ray Mead" wrote:
>
> > Help! How do I change the subform "Main subform" source object to "test1
> > subform"? programatically. I can find code to change the record source, but
> > I actually want to change the source object instead.
> >
> > Thanks for your help.

 
Reply With Quote
 
=?Utf-8?B?UmF5IE1lYWQ=?=
Guest
Posts: n/a
 
      14th Jun 2005
Nevermind. I fixed the problem. Thanks for the solution!!!

"Ofer" wrote:

> Try this
> me.[SubFormName].sourceobject="NewSource"
>
>
> "Ray Mead" wrote:
>
> > Help! How do I change the subform "Main subform" source object to "test1
> > subform"? programatically. I can find code to change the record source, but
> > I actually want to change the source object instead.
> >
> > Thanks for your help.

 
Reply With Quote
 
David C. Holley
Guest
Posts: n/a
 
      15th Jun 2005
What was the problem out of curiousity? I'm about to build a form
critical to my database and was thinking of using this technique.

Ray Mead wrote:
> Nevermind. I fixed the problem. Thanks for the solution!!!
>
> "Ofer" wrote:
>
>
>>Try this
>>me.[SubFormName].sourceobject="NewSource"
>>
>>
>>"Ray Mead" wrote:
>>
>>
>>>Help! How do I change the subform "Main subform" source object to "test1
>>>subform"? programatically. I can find code to change the record source, but
>>>I actually want to change the source object instead.
>>>
>>>Thanks for your help.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change source object on subform using VB gymphil Microsoft Access Form Coding 2 6th Aug 2008 02:49 PM
Change source in a Subform scott Microsoft Access Form Coding 2 4th Dec 2007 04:28 PM
Re: Change source object of subform Baz Microsoft Access ADP SQL Server 0 22nd Jan 2007 05:14 PM
Report Viewer with business ojbect data source + images dermot Microsoft VB .NET 0 3rd Nov 2006 03:33 PM
Change Subform within Subform record source proptery to paramter query sales@lunaraccents.com Microsoft Access Queries 2 30th Oct 2005 06:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:04 AM.