473,804 Members | 3,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Select diff value from drop down in subform, it changes all occurences in DB


I have a db with 3 tables, owner, lessee, and tract, tract is the main table
and has two lookup fields to find the owner and lessee info.
My problem - i have a form with the owner info on top and the tract info
(including lessee) in a subform below. When i change the lessee on the form,
it changes all of them in the entire database. I looked but couldn't find
anything about this on your site. I'm at a loss, i'm sure it's something i
set up wrong but can't figure it out. Please help. Thank you.
--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200507/1
Nov 13 '05 #1
4 1725

Sabra D wrote:
I have a db with 3 tables, owner, lessee, and tract, tract is the main table
and has two lookup fields to find the owner and lessee info.
My problem - i have a form with the owner info on top and the tract info
(including lessee) in a subform below. When i change the lessee on the form,
it changes all of them in the entire database. I looked but couldn't find
anything about this on your site. I'm at a loss, i'm sure it's something i
set up wrong but can't figure it out. Please help. Thank you. I did find something on your site, about the combo box being bound, it is so that's not the problem.

--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200507/1
Nov 13 '05 #2
do you have relationships set up? Are your fields bound?
the relationships may look something like this:

Owner--(1,M)---Tract---(1,M)---Lessee

Owner(OwnerID(P K), Name...)
Tract(TractID(P K), Location...)
Lease(LeaseID(P K), TractID (FK), LeseeID(FK), LeaseStart, LeaseEnd)
Leasee(LeaseeID (PK), Name, Address...)

Main Form could be either Lease or Tract. (Probably Lease)
Combobox for Tract and either a subform or combobox for Leasee -
depending on your business rules.

Stuff to check:
1. The Master/Child relationship stuff in your form. they should NOT
be blank!
2. the relationships window. There should be relationships established
between your tables, then the forms should follow that.

Nov 13 '05 #3

OK, checked relationships, the tract is related to the others by the "lessor
id" and "lessee id", which is "id" in the respective table, i think that is
how it should be and master/child shows this correctly. You say i should
have the main form be lease or tract (which i have in a different table) but
i want to see what each owner has so i set it up to have the owner as the
main form (so i could search by name) with the tract info below in a subform -
is that the problem? Because of the way i have the tracts set up (because
that's how it needs to be), it has a many to one relationship with lessee
(one lessee per tract) but the same lessee can have multi tracts (isn't that
right?). I don't need to set out the lease separate from the tract, it can
be in the same table and i prefer it that way (is that a problem?). So, now
that i've explained a little more, any other suggestions? Oh, and yes, my
lessee field is bound to the lessee table (is that how it should be?).

pi********@hotm ail.com wrote:
do you have relationships set up? Are your fields bound?
the relationships may look something like this:

Owner--(1,M)---Tract---(1,M)---Lessee

Owner(OwnerID( PK), Name...)
Tract(TractID( PK), Location...)
Lease(LeaseID( PK), TractID (FK), LeseeID(FK), LeaseStart, LeaseEnd)
Leasee(LeaseeI D (PK), Name, Address...)

Main Form could be either Lease or Tract. (Probably Lease)
Combobox for Tract and either a subform or combobox for Leasee -
depending on your business rules.

Stuff to check:
1. The Master/Child relationship stuff in your form. they should NOT
be blank!
2. the relationships window. There should be relationships established
between your tables, then the forms should follow that.

--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200507/1
Nov 13 '05 #4

You were right, it had to do with my relationships. Got it fixed, thanks for
all the help.

pi********@hotm ail.com wrote:
do you have relationships set up? Are your fields bound?
the relationships may look something like this:

Owner--(1,M)---Tract---(1,M)---Lessee

Owner(OwnerID( PK), Name...)
Tract(TractID( PK), Location...)
Lease(LeaseID( PK), TractID (FK), LeseeID(FK), LeaseStart, LeaseEnd)
Leasee(LeaseeI D (PK), Name, Address...)

Main Form could be either Lease or Tract. (Probably Lease)
Combobox for Tract and either a subform or combobox for Leasee -
depending on your business rules.

Stuff to check:
1. The Master/Child relationship stuff in your form. they should NOT
be blank!
2. the relationships window. There should be relationships established
between your tables, then the forms should follow that.

--
Message posted via http://www.accessmonster.com
Nov 13 '05 #5

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

Similar topics

17
2639
by: guitarromantic | last post by:
Hey everyone. I'm re-writing a php Content Management System (based loosely on phpNuke but specific to my site). My first major change was attempting to normalise the Review section database structure. I've created a Staff table with staff email addresses and names (plus id), and a Reviews table with the text of the reviews. The Reviews table contains an 'author' field with a value that corresponds to the Staff table. When I display a...
2
1541
by: Johan Christensson | last post by:
Hi. I'm woundering if it's possibel to transfer a OnAction value from a drop-down box in an ASP page without having to use Java code? I mean something like this: <% Sub resposeprocess
1
2390
by: Eric Trav | last post by:
Hello, I am using mozilla and javascript to change the style background color for my select with onfocus() and back to white with onblur(). When i process onfocus(); i have to click on the select three times to get the popup menu and everything seems slow. No errors are reported in the console however it seems as if the click event is not being processed after the focus event is processed.
4
17633
by: Therese A. Sorna | last post by:
Hello all... I am using Access 2002, and am trying to find a way for a user to be able to select multiple entries from a drop-down list. I am hoping that given a list as such: a b c d
14
2942
by: Jos? | last post by:
This one droves me completely mad. I did not succeed to exploit the track given to me by Bob. I have : three tables : Clubs, Persons and ClubsPersons that join the two first in a many to many relationship. Club has two (2) fields : ClubId (Autonumber) and ClubName (Text). Peoples has two(2) fields : (PersonId (Autonumber) and PersonName (Text) ClubsPersons has two (2) fields : ClubId (LongInteger) and PersonId
3
14565
by: William Wisnieski | last post by:
Hello Again, I'm really stuck on this one.....so I'm going to try a different approach to this problem. I have a query by form that returns a record set in a datasheet. The user double clicks on a row and a main form (pop up) opens bound to a table with a continuous subform bound to another table. On the main form is a field called . It is vital that this is
3
4450
by: scott | last post by:
Hello all, I am ripping my hair out over this and maybe someone could help. I have a site that has groups and subgroups of those groups that all have int id's. I am trying to have a multiple select drop down (could select more than one group) like the following:
6
7576
by: phpnewbie26 | last post by:
My current form has one multiple select drop down menu as well as few other drop down menus that are single select. Originally I had it so that the multiple select menu was first, but this created the problem that when I went to select the other drop down menus, the selections i made on the multiple select one would clear. Then I had tried putting the multiple select menu last so that the selections wouldn't clear but then after clicking the...
0
9708
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
9588
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10589
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
10340
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...
0
10085
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
5527
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...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.