A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to insert fields of different tables in one form?



 
 
Thread Tools Display Modes
  #1  
Old September 9th, 2008, 12:46 PM posted to microsoft.public.access.tablesdbdesign
deepak
external usenet poster
 
Posts: 100
Default How to insert fields of different tables in one form?

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?
  #2  
Old September 9th, 2008, 01:04 PM posted to microsoft.public.access.tablesdbdesign
Allen Browne
external usenet poster
 
Posts: 11,706
Default How to insert fields of different tables in one form?

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.)

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"deepak" wrote in message
...
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?


  #3  
Old September 9th, 2008, 06:00 PM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default How to insert fields of different tables in one form?

On Tue, 9 Sep 2008 04:46:00 -0700, deepak
wrote:

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.
--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.