Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / May 2008

Tip: Looking for answers? Try searching our database.

Tables & Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amanda - 28 May 2008 15:20 GMT
I'm very new to access.  I need to design a form that has different sections
in it.  I know I have to start with building a table but do I put each
section in a different table?  Then do iI build the form off of all the
tables?  Thank you in advance.
Klatuu - 28 May 2008 16:20 GMT
A form can have only one table or query as it's record source.  You can use
multiple tables to create a query for a form, but in many cases, queries
built from multiple tables cannot be updated.  You can tell if a query is
updatable or not by opening it. If the navigation button to the right with
the * on it is greyed out, you can't edit, add, or delete any records.  So
you have to be sure you can edit the recordset for you form.

If you need to update multiple tables, there are two situations to consider.
If the tables are not logically related to each other, then you will
probably want to use a different form for each table.  If the tables have
some relationship.  For example, you have a table of Clients and a table of
Contacts for each of the Clients, then the Contacts table will need to have a
field that defines which Client the Contact belongs to.  This is done by
using the Client's primary key value in a field in the Contact table.  This
is known as a foreign key.

In this case, you can use a form/subform.  You would use the Client table as
the record source for the form and the Contact table as the record source for
the subform.  To use a subform on a form, you put a subform control on the
form. There are 3 important properties for a subform control.
Source Object - This property is the name of the form to use as the subform
Link Master Field(s) - In this case, it would be the Client table's primary
key field.
Link Child Field(s) - In this case, it would be the name of the foreign key
field in the Contact table.  That is the field that has the value of the
primary key field in the Client table that defines which Client the Contact
belongs to.
Signature

Dave Hargis, Microsoft Access MVP

> I'm very new to access.  I need to design a form that has different sections
> in it.  I know I have to start with building a table but do I put each
> section in a different table?  Then do iI build the form off of all the
> tables?  Thank you in advance.
Amanda - 28 May 2008 17:25 GMT
Thank you very much.  I will have to see how my boss would like me to do
this.  You have made things a lot clearer for me and answered alot of my
questions.  Thank you again.  Have a great day!

> A form can have only one table or query as it's record source.  You can use
> multiple tables to create a query for a form, but in many cases, queries
[quoted text clipped - 28 lines]
> > section in a different table?  Then do iI build the form off of all the
> > tables?  Thank you in advance.
Klatuu - 28 May 2008 17:45 GMT
Glad I could help.
As you work through it, feel free to post back with additional questions
anytime you need some help.
Signature

Dave Hargis, Microsoft Access MVP

> Thank you very much.  I will have to see how my boss would like me to do
> this.  You have made things a lot clearer for me and answered alot of my
[quoted text clipped - 32 lines]
> > > section in a different table?  Then do iI build the form off of all the
> > > tables?  Thank you in advance.
Amanda - 28 May 2008 19:53 GMT
Thank you very much I will.

> Glad I could help.
> As you work through it, feel free to post back with additional questions
[quoted text clipped - 36 lines]
> > > > section in a different table?  Then do iI build the form off of all the
> > > > tables?  Thank you in advance.
John W. Vinson - 28 May 2008 17:43 GMT
>I'm very new to access.  I need to design a form that has different sections
>in it.  I know I have to start with building a table but do I put each
>section in a different table?  Then do iI build the form off of all the
>tables?  Thank you in advance.

I can assure you of one thing: designing your table structures to fit your
form will pretty much guarantee a flawed design.

Designing a relational database is a bit like building a house. The Tables and
their relationships are the foundation; Forms are the doorframes and windows.
You build the foundation FIRST. Data is stored in tables, and only in tables;
a Form is simply a tool to display and edit that data.

If you're using the word "form" in the common sense of a printed document of
fixed format, then I think you really want a Report. Access Forms are for
onscreen interaction with the data; Reports are for printing.

Design your tables based on the logical relationships between the Entities
(real-life people, things, or events) of importance to your application; then
design the forms and reports to fit the logical structure of the data - not
vice versa.

For some tutorials see

Jeff Conrad's resources page:
http://www.accessmvp.com/JConrad/accessjunkie/resources.html

The Access Web resources page:
http://www.mvps.org/access/resources/index.html

A free tutorial written by Crystal (MS Access MVP):
http://allenbrowne.com/casu-22.html

MVP Allen Browne's tutorials:
http://allenbrowne.com/links.html#Tutorials
Signature


            John W. Vinson [MVP]

Amanda - 28 May 2008 19:54 GMT
Thank you very much.  I'm beginning to understand this a little more.

> >I'm very new to access.  I need to design a form that has different sections
> >in it.  I know I have to start with building a table but do I put each
[quoted text clipped - 31 lines]
> MVP Allen Browne's tutorials:
> http://allenbrowne.com/links.html#Tutorials
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.