Hi all,
I'm in the process of setting up a database for a project that involves
actors, shows and venues and have set up tables as follows;
TblActors - Stage name(Primary key), real name, etc.
TblShow - Show name(Primary Key), venue, dates, etc.
TblVenue - Venue(Primary Key), address, phone number, etc.
TblJoin - Two fields, primary keys from Actors and Shows
I think I have done this correctly to get a many to many relationship, as one
actor can appear in many shows and one show can have many actors. There are
the usual one to many links from TblActor and TblShow to TblJoin.
My problem is that when I then set up a form for the actor, and try to have a
subform for shows, I don't seem to be able to link the forms successfully.
On checking the tables and clicking on the + by the side of the record I know
that it should show the details of all shows the actor appears in, but they
are just blank. I think I may have missed something fundamental in setting
up the tables. I've tried including a field for actors in the Show table and
vice versa, but it doesn't make any difference.
TblJoin never shows any records entered
Any help gratefully received (as ever!)
Tazzy
--
Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...ccess/200707/1 6 1920
Make sure that you've created your relationships for the tables (Tools-
>Show Relationships) and that you have enforced referential integrity.
Create a form based on Actors. Create a subform on that form based on
Join, make sure you use continuous forms for the subform. Hide Stage
Name on the subform. Change Show Name to a Combo Box and set it's row
source to "SELECT [Show name] FROM TblShow"
That's it. You're design is great so far. Any questions, just post
back.
Cheers,
Jason Lepack
On Jul 6, 4:54 am, "Tazzy via AccessMonster.com" <u26845@uwewrote:
Hi all,
I'm in the process of setting up a database for a project that involves
actors, shows and venues and have set up tables as follows;
TblActors - Stage name(Primary key), real name, etc.
TblShow - Show name(Primary Key), venue, dates, etc.
TblVenue - Venue(Primary Key), address, phone number, etc.
TblJoin - Two fields, primary keys from Actors and Shows
I think I have done this correctly to get a many to many relationship, as one
actor can appear in many shows and one show can have many actors. There are
the usual one to many links from TblActor and TblShow to TblJoin.
My problem is that when I then set up a form for the actor, and try to have a
subform for shows, I don't seem to be able to link the forms successfully.
On checking the tables and clicking on the + by the side of the record I know
that it should show the details of all shows the actor appears in, but they
are just blank. I think I may have missed something fundamental in setting
up the tables. I've tried including a field for actors in the Show table and
vice versa, but it doesn't make any difference.
TblJoin never shows any records entered
Any help gratefully received (as ever!)
Tazzy
--
Message posted via AccessMonster.comhttp://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/2007...
Hi Jason,
Thanks for that, it's made me feel much better and stopped a lot of head
scratching. Will this then ensure that I can gain access on this subform to
all of the data on the Show table, as I will need to have all of this
information available as well. I take it from what you have said so far that
nothing actually appears in the Join table, it's just a method of making the
many to many relationship.
Thanks so far,
Tazzy
--
Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...ccess/200707/1
On Fri, 06 Jul 2007 14:02:35 GMT, "Tazzy via AccessMonster.com"
<u26845@uwewrote:
No, a join table contains the values of the primary keys of the two
parent tables.
-Tom.
>Hi Jason,
Thanks for that, it's made me feel much better and stopped a lot of head scratching. Will this then ensure that I can gain access on this subform to all of the data on the Show table, as I will need to have all of this information available as well. I take it from what you have said so far that nothing actually appears in the Join table, it's just a method of making the many to many relationship.
Thanks so far,
Tazzy
I've created the forms as you suggested, (tried the second one before getting
your message) and yes, they work fine. The only problem I see is that the
subform will only contain info from the join table ie 2 fields. I would need
to show more detail than that, such as the venue, dates etc which are all
contained on TblShow. How can I get these to appear on the subform as well,
the field list only shows the fields from TblJoin. By the way, couldn't
figure out how to change the Show field to a combo box, so I added one, then
hid the original. Presumably there's a more professional method
--
Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...ccess/200707/1
If you want the venue information that you can create dlookup fields
to collect it, or put a subform on the subform that shows the
information from the show table.
The key thing with forms is to make it so that the data that you are
using is updatable. If you don't want it to be updatable you can put
whatever data you can pull together from your database on it.
Cheers,
Jason Lepack
On Jul 6, 11:42 am, "Tazzy via AccessMonster.com" <u26845@uwewrote:
I've created the forms as you suggested, (tried the second one before getting
your message) and yes, they work fine. The only problem I see is that the
subform will only contain info from the join table ie 2 fields. I would need
to show more detail than that, such as the venue, dates etc which are all
contained on TblShow. How can I get these to appear on the subform as well,
the field list only shows the fields from TblJoin. By the way, couldn't
figure out how to change the Show field to a combo box, so I added one, then
hid the original. Presumably there's a more professional method
--
Message posted via AccessMonster.comhttp://www.accessmonster.com/Uwe/Forums.aspx/databases-ms-access/2007...
Thanks very much for all your help and advice, much appreciated. I managed
to obtain what I needed by using a command button linked to the stagename
that then opened the Actors form to show all details of that actor, but will
try and figure dlookups on a backup of this one.
Ta ever so
Tazzy
--
Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/For...ccess/200707/1 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: MRG |
last post by:
I have a geographic points table containing point records with latitude and
longitude points. I also have several other tables containing entities that
will relate to points in the points table,...
|
by: H Cohen |
last post by:
Hi,
I have a corporate database with about 60 different tables that spans
manufacturing, accounting, marketing, etc.
It is possible, but unwieldy, to establish a relationship for each
table...
|
by: Megan |
last post by:
hello everybody,
i know this is a very long post, but i wanted to provide as much
detail as possible.
quick overview- i want to create a couple of many to many
relationships and am wondering...
|
by: Johnny Meredith |
last post by:
Hi,
I'm building a database that, once a year, generates surveys that are emailed
to people in our organization. The recipients of the surveys are managers of
various departments. The emails...
|
by: Ingrid |
last post by:
To help explain my question, I have illustrated the table
relationships and listed the fields in each table. Usually the Order
Details table has the most records in a database due to one to many...
|
by: ronenkf |
last post by:
I am currently working on access 2003. Created database with 4 tables.
For each on e there is a primary key, which is a text data type. Now
I'm trying to configure relationship between tables. The...
|
by: the other john |
last post by:
The trouble currently with 3 tables. I'm excluding non-relevant
fields...
tbl_users
PK_user_ID
tbl_developers
PK_developer_ID
FK_developer_user_ID
FK_developer_project_ID
|
by: Jeff |
last post by:
This is the first time that I remember ever having too many indexes on a
table, but it has happened.
I have en employees table and store in many places, on tables, the id of the
employee that...
|
by: banderson |
last post by:
Hello I'm new to developing databases in Access and using Access2003. I have a dataset with a few many to many relationships that I have created linking tables for to make multiple 1:M relationships....
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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: 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,...
|
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...
|
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...
|
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...
|
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...
| |