ChrisMacPherson
Programmer
Bit of a newbie question here.
I am making a database app. which will store companies details. I am designing the front end in VB and would like to create some tables with relationships as well. I have read lots about it and have discovered (I think) a few different ways of doing this.
I have figured out how to use the VisData manager to create the tables and keys, but how do I create the relationships between the tables once this is done?
The other way I have found(which I think might be better) is to create the tables etc. in SQL itself.
Another problem is, that when I code the app. to create the database, I will want it to save the database at the end, and not create a new database everytime the app. runs.
Would I just enter the database creation code in to a 'NEW DATABASE' option, and just connect to an existing database on startup? If so how do I link the tables with relationships when I connect to a database.
I hope this is a sensible question as I am quite confused on this matter!
Thanks for any help..
Chris MacPherson
thedamager@hotmail.com
Bring on the new Browza's!!
Learn/t/ing D\HTML, Javascript, Java, VB5-6, COBOL, Pascal
I am making a database app. which will store companies details. I am designing the front end in VB and would like to create some tables with relationships as well. I have read lots about it and have discovered (I think) a few different ways of doing this.
I have figured out how to use the VisData manager to create the tables and keys, but how do I create the relationships between the tables once this is done?
The other way I have found(which I think might be better) is to create the tables etc. in SQL itself.
Another problem is, that when I code the app. to create the database, I will want it to save the database at the end, and not create a new database everytime the app. runs.
Would I just enter the database creation code in to a 'NEW DATABASE' option, and just connect to an existing database on startup? If so how do I link the tables with relationships when I connect to a database.
I hope this is a sensible question as I am quite confused on this matter!
Thanks for any help..
Chris MacPherson
thedamager@hotmail.com
Bring on the new Browza's!!
Learn/t/ing D\HTML, Javascript, Java, VB5-6, COBOL, Pascal