473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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.com
http://www.accessmonster.com/Uwe/For...ccess/200507/1
Nov 13 '05 #1
4 1709

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.com
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(PK), Name...)
Tract(TractID(PK), Location...)
Lease(LeaseID(PK), 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********@hotmail.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(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.

--
Message posted via AccessMonster.com
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********@hotmail.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(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.

--
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
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...
2
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
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...
4
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
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...
3
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...
3
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...
6
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.