473,686 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A97 changes the link child and link master fields on a subform control w/o consulting or informing me

MLH
I have a subform control on a mainform. Each time I do anything
experimentally with it - like even change its Width property, A97
takes the liberty of setting values in the link child field and link
master field to a common field value. This is happening, I suppose,
because I have purposefully left the two property settings empty.

I'm just using the unbound subform control as a glorified list box.

Can I prevent this undesirable behavior?
Jan 12 '06 #1
4 2196

"MLH" <CR**@NorthStat e.net> wrote in message
news:1g******** *************** *********@4ax.c om...
I have a subform control on a mainform. Each time I do anything
experimentally with it - like even change its Width property, A97
takes the liberty of setting values in the link child field and link
master field to a common field value. This is happening, I suppose,
because I have purposefully left the two property settings empty.

I'm just using the unbound subform control as a glorified list box.

Can I prevent this undesirable behavior?


Yes, I agree that sometimes, in its attempts to be helpful, sometimes Access
can be TOO helpful. All I can suggest is check the settings in Tools |
Options to see if there is something which might apply -- offhand, I do not
recall one for LinkMaster and LinkChild autofill, however.

You may be stuck with going in manually and clearing those Properties when
you make a change to the Form embedded in the Subform Control or to the
Subform Control.

A workaround that would suggest itself to me would be to change the name of
one or the other of those Fields, so the association will not automatically
be made.

Larry Linson
Microsoft Access MVP

Jan 12 '06 #2
MLH
Yes, I agree that sometimes, in its attempts to be helpful, sometimes Access
can be TOO helpful. All I can suggest is check the settings in Tools |
Options to see if there is something which might apply -- offhand, I do not
recall one for LinkMaster and LinkChild autofill, however.

You may be stuck with going in manually and clearing those Properties when
you make a change to the Form embedded in the Subform Control or to the
Subform Control.

A workaround that would suggest itself to me would be to change the name of
one or the other of those Fields, so the association will not automatically
be made.

As always, you dig deep. Thx for sharing your thoughts. I'd take you
up on the work-around if it weren't for the fact that I'm pretty much
done with the form now. The infrequency of the problem is sufficient
to make it a minor concern.
Jan 13 '06 #3
In six months time when you go back to that form to update/fix something you
may well have forgotten that this will happen.

Just stick some code in the form load event to set the Linkmaster and
LinkChild properties to empty strings and your done with it.

e,g,
Private Sub Form_Load()
With Me.subformcontr olnamehere
.LinkChildField s = ""
.LinkMasterFiel ds = ""
End With
End Sub

--

Terry Kreft
"MLH" <CR**@NorthStat e.net> wrote in message
news:4g******** *************** *********@4ax.c om...
Yes, I agree that sometimes, in its attempts to be helpful, sometimes Accesscan be TOO helpful. All I can suggest is check the settings in Tools |
Options to see if there is something which might apply -- offhand, I do notrecall one for LinkMaster and LinkChild autofill, however.

You may be stuck with going in manually and clearing those Properties whenyou make a change to the Form embedded in the Subform Control or to the
Subform Control.

A workaround that would suggest itself to me would be to change the name ofone or the other of those Fields, so the association will not automaticallybe made.

As always, you dig deep. Thx for sharing your thoughts. I'd take you
up on the work-around if it weren't for the fact that I'm pretty much
done with the form now. The infrequency of the problem is sufficient
to make it a minor concern.

Jan 13 '06 #4
MLH
On Fri, 13 Jan 2006 13:23:48 -0000, "Terry Kreft"
<te*********@mp s.co.uk> wrote:
In six months time when you go back to that form to update/fix something you
may well have forgotten that this will happen.

6 months my Ass! Try 6 minutes. Great idea - many thanks.
Jan 14 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
21044
by: Deborah V. Gardner | last post by:
I am using Access 97 and have had a problem joining a main form and a subform. I have a main form and a subform. The data source on the main form is a SELECT statement referring to three tables. The subform's data source is a table. When I try to link the Child and Master fields, I get the message "Can't build a link between unbound forms." I have tried typing in the common fields and it still does not work.
3
8478
by: Mark C | last post by:
I have a unbound form with a tab control with four tabs in an Access 97 database. On each tab I have a sub form each form on the sub forms is bound to its own table. Each table has a field that can link them all together. I have put an invisible unbound control on the master form that gets populated on open. I set the link child and link master of each sub form to the unbound control on the master form. When the form opens all the subforms...
2
3763
by: Chewy1026 via AccessMonster.com | last post by:
Is this even possible. To be able to have a subform where the Master field on the main form is linked to the subform via 1 child field OR another? So the table for the main form, can be matched to 2 different fields (one or the other). Can this be done with only 1 subform? -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/200510/1
13
8290
by: paquer | last post by:
Ok' I have 2 tables. The first being my main table where each record has a 'FigureID' txt box. (Indexed - No duplicates) The second being my sub table where reporting is entered for these Figures. Sometimes more than one at a time. I have 4 'FigureID' txt boxes on this subtable.(All Indexed - Duplicates OK) When I set the Master/Child link for the first FigureID on the Subtable I have no problems.
11
6651
imrosie
by: imrosie | last post by:
Hello Experts This is a hard one (I still speak newbie). An expert may think it's not a big deal, but, I am trying to replace my Main Order form with a subform because of the following: Original form was based on a query of 2 tables (Order and Customers), the subform was based on table OrderDetail(productname, quantity, discount, unitprice). I was experiencing autonumber problems when attempting to start a new order, because of the inner...
1
8634
by: Yubin | last post by:
Hello, I'm new to the forums and I wasn't able to find anything in my searches so here we are. I have a DB with a many-2-many relationship. I have a form that has 3 comboboxes: Project #, Last Name, Active(Yes/No) I have a subform that uses Project# as a Child and Master link. I want to use all three exclusively to give the user the option to search using any ONE of the three, but when I add all three to the Child and Master link fields no...
4
32917
by: MPat | last post by:
Hi!! I've been trying to figure this out.. I have a form with a subform and I need to display 2 different things in this subform, that's why I came with the idea of changing the Link Child Field and the Link Master Field. This change should happen when clicking a button, so it would be helpful if somebody has an idea of how to change these fields in Visual Basic!! The links between the forms actually work if I change the fields...
1
2000
by: Rosy | last post by:
I have a form "A" that is set on table vessel names. I have subform "B" that is set on table vessel info. I want form "B" to update based on what vessel I choose in form "A". I know this is an easy one. :)
12
3024
by: banderson | last post by:
Hello all, I am hoping that you can help me with a problem that has occurred numerous times on various forms in the two databases that I am working on. When I first add a subform to a form linking child and master fields (primary key and foreign key), the subform will automatically update when the master field on the main form is changed (it is in a combo box). However, when I work more on the form - making it a bit more complicated, adding...
0
8585
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9057
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8934
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8770
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8780
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7603
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4309
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2947
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.