472,334 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,334 software developers and data experts.

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 2070

"MLH" <CR**@NorthState.net> wrote in message
news:1g********************************@4ax.com...
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.subformcontrolnamehere
.LinkChildFields = ""
.LinkMasterFields = ""
End With
End Sub

--

Terry Kreft
"MLH" <CR**@NorthState.net> wrote in message
news:4g********************************@4ax.com...
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*********@mps.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
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...
3
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...
2
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? ...
13
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...
11
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...
1
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...
4
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...
1
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...
12
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...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

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.