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? 4 2200
"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 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.
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
|
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...
|
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
|
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.
|
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...
| |
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...
|
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...
|
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. :)
|
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...
|
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...
|
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,...
| |
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |