relationships & tables

S

Suzilicious

I am a beginner, still trying to find out that if I create a relationship
between 2 tables, and I fill one table up, will the second get filled up too?

now with regards to the tab folder when creating forms, can I display a
query form on each tab folder?

how do I create a combo box that would actually save the values I enter
inside, and if the value I want isn't available be able to type it in... al
to be saved in a field in a table. Example country field.
 
J

JohnLute

If the relationship is setup properly - yes. List your tables and primary key
fields and I think this could be answered more accurately for you.

Where are you creating your combo box: n a table or form?
 
R

Roger Carlson

FYI. It generally considered good form to ask one question (with a
descriptive subject line) for each question.

See comments In-Line:
I am a beginner, still trying to find out that if I create a relationship
between 2 tables, and I fill one table up, will the second get filled up
too?

No. Simply creating a relationship will not add records to the Many-side
table when you add a record to the One-side table. However, if you use a
Form/Subform, the subform control will take care of adding the primary key
value of the record in the main table to the foreign key field of the
related record in the child form. On my website
(www.rogersaccesslibrary.com), there is a small Access sample database
called "FormSubform.mdb" which illustrates this.
now with regards to the tab folder when creating forms, can I display a
query form on each tab folder?

I'm not sure I understand what you mean by "query form". However, if you
add a tab control to your form, you can add form controls to each tab so
that those controls will only be visible when that tab is clicked. Each of
the controls on each tab will still be bound to the underlying table (ie
that the form is bound to) or if it is a subform control, it will be bound
to the table the subform is bound to
how do I create a combo box that would actually save the values I enter
inside, and if the value I want isn't available be able to type it in... al
to be saved in a field in a table. Example country field.

The easiest way to do this is to set the "Limit To List" property to NO.
However, I do not recommend this. Generally, combo boxes are filled by
values stored in separate tables. When you try to add something that is not
in the list, you can use code in the "NotInList" event to add values to the
other table. On my website, there is another sample called: "NotInList.mdb"
which illustrates.

--
--Roger Carlson
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
 
J

John Vinson

I am a beginner, still trying to find out that if I create a relationship
between 2 tables, and I fill one table up, will the second get filled up too?

No, it will not. That's not what relationships are for!

If you have two tables in a one to many (or, rarely, a one to one)
relationship, you will be PREVENTED from adding records to the "child"
table unless there is a matching record in the "parent" table. There
may be zero, one, or multiple records in the dependent table for each
record in the parent table.
now with regards to the tab folder when creating forms, can I display a
query form on each tab folder?

You can display any desired type of control on a Tab Page, including a
Subform control. A Subform can (usually will) be based on a query, but
I'm not sure that's what you mean by "a query form"! Could you
explain?
how do I create a combo box that would actually save the values I enter
inside, and if the value I want isn't available be able to type it in... al
to be saved in a field in a table. Example country field.

See the online help for "Not In List", or for more detailed
explanations go to http://www.mvps.org/access and search for
"NotInList".

John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 
J

John Vinson

If the relationship is setup properly - yes. List your tables and primary key
fields and I think this could be answered more accurately for you.

ummm... you're mistaken, John. I think she was asking if new records
would automagically be created in the child table when records are
entered in the parent; they won't.

John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top