PC Review


Reply
Thread Tools Rate Thread

access 2007 dynamic creating child and master link fields on subfo

 
 
aft3rgl0w
Guest
Posts: n/a
 
      12th Jan 2010
I have a form used for searching, and a subform displaying by default a
datasheet of the table being searched. there is a listbox above that
displays the results as the user types. with a click of a button, those
results can be mirrored to the subform (recordsource is changed through vba).
this works fine i naccess 2003. in access 2007, after the update, access
seems to be automatically creating master and child link fields on the
subform between itself and the main form. it is doing this on it's own on 5
forms set up the same way but for searching different tables. any ideas on
why it's doing this by itself? it causes the datasheet to come up emtpy.
thanks in advance!!
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      12th Jan 2010
Hi,
try to clear them in code after you changed recordsource:

Me.MySubform.LinkChildFields = ""
Me.MySubform.LinkMasterFields = ""


--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com

"aft3rgl0w" <(E-Mail Removed)> wrote in message
news:79ACB4F0-4A1B-4592-A24E-(E-Mail Removed)...
> I have a form used for searching, and a subform displaying by default a
> datasheet of the table being searched. there is a listbox above that
> displays the results as the user types. with a click of a button, those
> results can be mirrored to the subform (recordsource is changed through
> vba).
> this works fine i naccess 2003. in access 2007, after the update, access
> seems to be automatically creating master and child link fields on the
> subform between itself and the main form. it is doing this on it's own on
> 5
> forms set up the same way but for searching different tables. any ideas
> on
> why it's doing this by itself? it causes the datasheet to come up emtpy.
> thanks in advance!!


 
Reply With Quote
 
asouthy
Guest
Posts: n/a
 
      4th Feb 2010
I have been having the same problem on many of my databases and haven't
previously been able to locate a solution. Thank you, this worked perfectly!!

"Alex Dybenko" wrote:

> Hi,
> try to clear them in code after you changed recordsource:
>
> Me.MySubform.LinkChildFields = ""
> Me.MySubform.LinkMasterFields = ""
>
>
> --
> Best regards,
> ___________
> Alex Dybenko (MVP)
> http://accessblog.net
> http://www.PointLtd.com
>
> "aft3rgl0w" <(E-Mail Removed)> wrote in message
> news:79ACB4F0-4A1B-4592-A24E-(E-Mail Removed)...
> > I have a form used for searching, and a subform displaying by default a
> > datasheet of the table being searched. there is a listbox above that
> > displays the results as the user types. with a click of a button, those
> > results can be mirrored to the subform (recordsource is changed through
> > vba).
> > this works fine i naccess 2003. in access 2007, after the update, access
> > seems to be automatically creating master and child link fields on the
> > subform between itself and the main form. it is doing this on it's own on
> > 5
> > forms set up the same way but for searching different tables. any ideas
> > on
> > why it's doing this by itself? it causes the datasheet to come up emtpy.
> > thanks in advance!!

>
> .
>

 
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
Master/Child Link breaks when opening in Access 2007 DanJ Microsoft Access Forms 0 8th Jul 2009 12:12 AM
A subform Link Child Fields, Link Master fields problem (newbiequestion) raylopez99 Microsoft Access Form Coding 6 25th Dec 2007 09:52 PM
Link Master and Child fields =?Utf-8?B?TGV2YW5zIGRpZ2l0YWw=?= Microsoft Access 3 5th Jun 2007 09:48 PM
Link Child / Master Fields =?Utf-8?B?Sm9obkx1dGU=?= Microsoft Access Reports 1 20th Nov 2006 05:22 PM
Child & Master Link Fields =?Utf-8?B?U01TZ3RlOA==?= Microsoft Access Forms 2 17th Apr 2006 12:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:50 PM.