Antimatter
Registered User.
- Local time
- Today, 07:37
- Joined
- Aug 26, 2004
- Messages
- 16
Hello i'm new here, and what begun as a simple book list database project which would list my books and their author(s) and my first version was working great w/ droupdown boxes and so forth that would automaticaly add the item to their tables if the user (me) added a new topic or new author for example.
however one flaw was it didn't support multiple authors per books and ive been working on this for the past couple of days and well ive been doing alots of reading and researching and got a couple time an forum to work properly and allow me to add new more authors to an book but its still very messy and i'm trying to figure out how to setup my tables better, anyway they say a picture is worth a thousand words so here's two pictures.
this is the picture of my database relationship. Here's a little explaination behide the logic of couple of my tables, mainly the following: topic, trilogy, series, publisher. In the orginal version i had these as an droup down combo box that added the item into the list if they wasn't already there, it greatly speed up data entery because i could just type in a couple of letter and bam they would pop up and if not there i would just finish then jump to next field and it would automaticaly add it to the table for furture reference.
Plus ive been reading about normalizing and i also had alots of dupicate fields so it would help droup the numbers of errors in the database if i could select it from a droupdown list and so forth, in the book table it would just store the ID to the other tables, so it would be just bunch of numbers but when the user check on the data via the form the user would see the actual information and not the ID number. and i can use queries to join the database information together for me to review if i need to.
Anyway ive redesigned the database many time, the first incaration which was my first time ive ever used access in my life time was a simple flat table, second incaration was similar to the one showen above but i had the author as another one of those droupdown combo table w/ one entery and nothing of the tables had an autonumber as its primary key, the primary key was the only colume in the table which was like author name etc...
then i did some research and ran into problem concerning multiple authors to book so i begun my third incaration, and it seems to be processing along quite good, but i'm having problems w/ data entery and i'm not sure if its the proper way of seting many to many relationship.
here's the form that the wizard creates, i would like one similar to this but instead of text entery for a couple field i want droupdown, then i also want to add droupdown for the author subform so i can droupdown and select an author from the list, same w/ position and so forth, i also want to get rid of the ID's but if i do the database would complain that the tables are not joined or something, and for subform it would complain that it can't update it or something. tried to look the errors in the help file, no luck there
anyway here's the form as i would like it to look
btw ignore the misname of first, it should be author i drafted it up quickly
then the visual designer picture
anyway to explain the two pictures above, the first picture is how i want the form to look like and i have it that way but it will error out whenever i try to enter new data in the main and the subform but for both different type of errors.
then second picture shows the droupdown box as i want it to be, i store the author name in 3 seperate field in the author table, which is first middle last, anyway i want the combo box to take all three and merge it in the form of first middle last, and if the user (me) enters a new author not on the list it will seperate the names up and store them in each of their respective fields, anyway the first name and last name is pretty much mandatory but if it dosen't find a third then it will skip and put a blank for the middle name field.
Sorry for the hordes of questions but this is my very first database ive ever constructed and i only begun on the project two days ago. and i'm actualy surprised on the amount of progress ive done but i'm stuck on how to enter the data and show the data on the form part and i'm not sure if my tables are designed properly to do what i want them to do.
thank you for your help!
[edit:] ive also checked some of the avaiable demo database out there related with books but most of them uses authors as the master list, i want to use books as master list so when i check a book it will list all the authors and allow me to add remove authors from the books and also add and remove books from the list, most of the ones avaiable are one to one relationship or you select authors and it presents you with a list of books that the author wrote.
i figure that if i want a list of book that a partcluar author wrote i could probably draft up an query and search for a listing of that one partclular author. atleast from what ive learn about query which i'll admit isn't that much
however one flaw was it didn't support multiple authors per books and ive been working on this for the past couple of days and well ive been doing alots of reading and researching and got a couple time an forum to work properly and allow me to add new more authors to an book but its still very messy and i'm trying to figure out how to setup my tables better, anyway they say a picture is worth a thousand words so here's two pictures.
this is the picture of my database relationship. Here's a little explaination behide the logic of couple of my tables, mainly the following: topic, trilogy, series, publisher. In the orginal version i had these as an droup down combo box that added the item into the list if they wasn't already there, it greatly speed up data entery because i could just type in a couple of letter and bam they would pop up and if not there i would just finish then jump to next field and it would automaticaly add it to the table for furture reference.
Plus ive been reading about normalizing and i also had alots of dupicate fields so it would help droup the numbers of errors in the database if i could select it from a droupdown list and so forth, in the book table it would just store the ID to the other tables, so it would be just bunch of numbers but when the user check on the data via the form the user would see the actual information and not the ID number. and i can use queries to join the database information together for me to review if i need to.
Anyway ive redesigned the database many time, the first incaration which was my first time ive ever used access in my life time was a simple flat table, second incaration was similar to the one showen above but i had the author as another one of those droupdown combo table w/ one entery and nothing of the tables had an autonumber as its primary key, the primary key was the only colume in the table which was like author name etc...
then i did some research and ran into problem concerning multiple authors to book so i begun my third incaration, and it seems to be processing along quite good, but i'm having problems w/ data entery and i'm not sure if its the proper way of seting many to many relationship.
here's the form that the wizard creates, i would like one similar to this but instead of text entery for a couple field i want droupdown, then i also want to add droupdown for the author subform so i can droupdown and select an author from the list, same w/ position and so forth, i also want to get rid of the ID's but if i do the database would complain that the tables are not joined or something, and for subform it would complain that it can't update it or something. tried to look the errors in the help file, no luck there
anyway here's the form as i would like it to look
btw ignore the misname of first, it should be author i drafted it up quickly
then the visual designer picture
anyway to explain the two pictures above, the first picture is how i want the form to look like and i have it that way but it will error out whenever i try to enter new data in the main and the subform but for both different type of errors.
then second picture shows the droupdown box as i want it to be, i store the author name in 3 seperate field in the author table, which is first middle last, anyway i want the combo box to take all three and merge it in the form of first middle last, and if the user (me) enters a new author not on the list it will seperate the names up and store them in each of their respective fields, anyway the first name and last name is pretty much mandatory but if it dosen't find a third then it will skip and put a blank for the middle name field.
Sorry for the hordes of questions but this is my very first database ive ever constructed and i only begun on the project two days ago. and i'm actualy surprised on the amount of progress ive done but i'm stuck on how to enter the data and show the data on the form part and i'm not sure if my tables are designed properly to do what i want them to do.
thank you for your help!
[edit:] ive also checked some of the avaiable demo database out there related with books but most of them uses authors as the master list, i want to use books as master list so when i check a book it will list all the authors and allow me to add remove authors from the books and also add and remove books from the list, most of the ones avaiable are one to one relationship or you select authors and it presents you with a list of books that the author wrote.
i figure that if i want a list of book that a partcluar author wrote i could probably draft up an query and search for a listing of that one partclular author. atleast from what ive learn about query which i'll admit isn't that much
Last edited: