How to insert fields of different tables in one form?

D

deepak

Suppose I create two tables to store information. I want to desing a form
where I can have the fields of both tables. I want to know how to access the
fields of these two tables in the same form?
 
A

Allen Browne

You can create a query that uses the 2 tables, and use the query as the
source for the form.

If need to update the data with this form, be careful. In some cases it may
not be updatable. In other cases, it might insert, or delete records
differently than you expect. A main form with a subform might be better
(depending on what you are doing.)
 
J

John W. Vinson

Suppose I create two tables to store information. I want to desing a form
where I can have the fields of both tables. I want to know how to access the
fields of these two tables in the same form?

How are the tables related? What kind of data do they contain?

As Allen suggests, a Query joining the tables may be appropriate. Frequently
if you have two tables in a one to many relationship you can use a Form for
the "one" side table with a Subform for the "many" - there are actually two
forms involved but to the user it looks like one form with fields from both
tables.
 

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