eurojourney
Eurojourney
- Local time
- Today, 13:05
- Joined
- May 12, 2010
- Messages
- 24
Hello,
Ok, I am hitting a wall with my simple database that I need to create. I need to register in my real estate company clients who might be associated with a broker, many brokers or no brokers. Also, I need to register brokers who may have one client, many clients or no clients at all. The following is the relationship I came up with my tables, having two major tables, Client and Broker tables and a Registration Table to take care of the Many-to-Many relationship between the two.
Initially, I did not use the Registration table and instead created a lookup field in my Client table to be able to pick a broker and associated with the client. Several people have said this is not recommened, that I need to use my Registration table instead. Furthermore, I have read too that I need to create a Query using the fields of all the tables I need using the Registration table Primary Key. Now, I tried this and I am not sure how to do it, which fields I can add, if I can add the name, last name, company, etc. of the broker and the client into the same query (I get an error when doing this which I'll post below) or I I should only include the primary key of the registration table and the Client and Broker table or what.
Basically what I want to achieve is to have a form where the receptionist can enter first all the Broker's information (that would be one form, very straight forward - no problem). The second form, which is the Clients form, seems to be more tricky because it would be quite similar to the Broker form but in addition, it would include a combo box where it will list all the brokers registered already and from which I would pick the correct one or correct ones if more than one that are associated with that particular client. This I don't know how to achieve, I don't know how to see in two tables in one form - apparently I need to do the query but that I can't get to work either. I am a little lost and I know this is basic stuff but I think I might just need a little push in the right direction and perhaps I can take it from there. I have spent many hours already, read quite a bit, and had it all working between my Client and Broker form and my lookup field in the Client table but now am going backwards now that I found out this is not a good idea and want to do it right from the beginning.
Please help!!!
(Here is the error message when doing the query: "The sql statement could not be executed because it contains ambiguous outer joins. To force one of the joins to be performed first, create a separate query that performs the furst join then include that query in your SQL statement.”
Here is the relationship chart of my database...I added the Registration ID field in the Client and Broker form but I don't know if I really needed or if I should link it with the registration table or what...Thank you again for your help!!! - Click link for Relationship chart.
http://motojourney.com/presentation1.jpg
Ok, I am hitting a wall with my simple database that I need to create. I need to register in my real estate company clients who might be associated with a broker, many brokers or no brokers. Also, I need to register brokers who may have one client, many clients or no clients at all. The following is the relationship I came up with my tables, having two major tables, Client and Broker tables and a Registration Table to take care of the Many-to-Many relationship between the two.
Initially, I did not use the Registration table and instead created a lookup field in my Client table to be able to pick a broker and associated with the client. Several people have said this is not recommened, that I need to use my Registration table instead. Furthermore, I have read too that I need to create a Query using the fields of all the tables I need using the Registration table Primary Key. Now, I tried this and I am not sure how to do it, which fields I can add, if I can add the name, last name, company, etc. of the broker and the client into the same query (I get an error when doing this which I'll post below) or I I should only include the primary key of the registration table and the Client and Broker table or what.
Basically what I want to achieve is to have a form where the receptionist can enter first all the Broker's information (that would be one form, very straight forward - no problem). The second form, which is the Clients form, seems to be more tricky because it would be quite similar to the Broker form but in addition, it would include a combo box where it will list all the brokers registered already and from which I would pick the correct one or correct ones if more than one that are associated with that particular client. This I don't know how to achieve, I don't know how to see in two tables in one form - apparently I need to do the query but that I can't get to work either. I am a little lost and I know this is basic stuff but I think I might just need a little push in the right direction and perhaps I can take it from there. I have spent many hours already, read quite a bit, and had it all working between my Client and Broker form and my lookup field in the Client table but now am going backwards now that I found out this is not a good idea and want to do it right from the beginning.
Please help!!!
(Here is the error message when doing the query: "The sql statement could not be executed because it contains ambiguous outer joins. To force one of the joins to be performed first, create a separate query that performs the furst join then include that query in your SQL statement.”
Here is the relationship chart of my database...I added the Registration ID field in the Client and Broker form but I don't know if I really needed or if I should link it with the registration table or what...Thank you again for your help!!! - Click link for Relationship chart.
http://motojourney.com/presentation1.jpg