Relatsionships and subforms

Noodle7

New member
Local time
Today, 02:25
Joined
Aug 2, 2006
Messages
6
Please help !

I have been struggling to create forms with these relationships(see attached file) . I would like to create a subform of the product list and the form must have Title TitleID and Artist and Artist ID ...these also need to populate the Product list table... oh how do I get around this ! What am I doing wrong
 

Attachments

  • Relationship.gif
    Relationship.gif
    22.4 KB · Views: 169
Can you attach the Db for us to have a look at. (even a cut down version) It will be easier to alter that and post it back, rather than trying to explain it.

On first impressions you dont seem to have one to many relationships set up. Are the foreign keys in your tables formatted as numbers?

Dave
 
I've had a look at your relationship diagram and I think you need to re-structure your database. A good example of the problem is that the "Artist" table contains the same information as the "Title" table and, because you've defined relationships with both of them and the "product" table, you've then got a circular set of relationships which can give you all sorts of trouble. You really need to think about what the actual data "entities" are. I would suggest "Artist" just contains information about artists, "Title" contains information about the works (including the id of the Artist who produced each one) and "product" contains details of the products (I assume that the product is something different from the work, say mugs, T shirts etc bearing a relationship to artisitc works). The id of the "Artist" would then be an attribute of each work (eg both "Mona Lisa" and "Last Supper" would have the id of Leonardo Da Vinci as the artist) and you wouldn't need to have a relationship between "Product" and "Artist" because anything with the Mona Lisa or the Last Supper printed on would have a link to Leonardo via the "Title"
If you really want to understand data analysis I suggest you read a bit about Codd Normalisation and the various Normal Forms which you will find on the web and in the help in Access. It'll drive you mad at first but it clicks eventually.
If you get the data structure right the forms, queries and reports are usually quite easy, if you get the data structure wrong they're often well nigh impossible!!
 
Geoff Convery said:
If you get the data structure right the forms, queries and reports are usually quite easy, if you get the data structure wrong they're often well nigh impossible!!

Get the tables and relationships right first. Starting off with forms, although seems a good idea as you can see what your database will look like, and leads you to believe you are getting somewhere, causing all kinds of grief.

These days I design almost all my tables in the relationship window, as you can see which data will marry up with other data in related tables, and add or detele fields as you go.

You really need to sit down and know what end results you will require.

Thats why I suggested uploading a sample, rather than a newcomer trying to wade through the above information.

Dave (PM received)
 
Not sure where you are at with this. As I dont know the data details, not sure if this is of any help,

Dave
 

Attachments

you are good! thank you ! , just didn't know where to start had an idea but it just wasn't happening ! Will review and let you know..thanks
 
The next thing you will have to do is handle the combo boxes when an item is not listed. Here is how I do it.
 

Attachments

Users who are viewing this thread

Back
Top Bottom