Forms help for beginner

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I just got introduced to Access and would like some advice on how to get
started on a form that I am trying to create. I have the rough concept in an
excel file and would like someone to take a look at it and give me feedback
on how to get started. If anyone is interested in helping please contact me
at (e-mail address removed) so I can send them the file. Thanks so much!

anna
 
The purpose of the newsgroups is so that we can all exchange information.
Excel and Access are very different from each other. Having a rough idea in
a spreadsheet does not readily translate into a relational database. In a
spreadsheet you enter a person's name (for instance) in every record (row
that applies to that person). In Access you enter each person's name once.
If a person's name changes you change that person's record only. All related
records (such as payroll) now refer to that person's new name. You don't
need to update each record. In Access the data are stored in tables, without
exception. Databases start with table structure and relationships. Only
after that is established do you start thinking about forms, which are the
means by which users enter, edit, find, and view information. Users should
not be working directly with tables, but tables MUST come first in the design
process.
Why don't you describe what you are trying to do, and see what input you
receive from others in the forum?
 
I am trying to create a customer contact database. This will keep track of
any and all forms of contact and interaction with the customer. This
database will contain information such as customer ID #, customer acct #,
customer name, status of acct, date of contact, time of contact, form of
contact, acct due date, name of person contacted, primary phone number,
alternate phone number, address, if return receipt.certified mail was sent,
appt date if applicable, appt time, appt location and a summary of the
contact.

The purpose of this database will be for tracking the acct status. I want
to be able to put in the customer ID # in the form and it will populate some
of the information(I assume I need to create a table with customer ID#,
customer acct #, customer name, address, primary phone # and alternate phone
number in order for it to populate on the form). The rest of the information
I will input on a case by case basis. I also want drop down buttons for some
of the fields. For example for form of contact; is it by phone or mail or
fax? I want to be able to view history of a customer once I put in the
customer ID# on the form. I also want to be able to run reports that will
give me the latest staus of an acct or a report with the history of the acct.
I also want to be able to run reports by due date and see the latest status.
This way when my boss asks me what's going on with an acct I can just pull up
the info. This is also to keep track of what's going on with my accts.

I have all these idea in my head but I don't know how to put it into action
or where to start. Please help!!!

anna
 
You will need a customer table containing customer name, address, phone, etc.
It can also include preferred contact method and things like that, but let's
leave that aside for now. You should be able to describe a table's function
in a single sentence without using the word "and" (except for Name and
Address and things like that, as opposed to Name and Appointments, which is
not good).
Each row in the table is a record. Each cell in the table grid is a field.
A database table is not at all the same as a spreadsheet row. Spreadsheets
can perform calculations and things like that, but a database table is just a
bucket of information. Calculations, sorting, and anything else you want to
do is handled somewhere other than in the table.
Every table needs a primary key (PK), which is a unique identifier attached
to every record. One way of handling this (and the easiest way for
beginners, IMHO) is to use autonumber data type (which is assigned in the
table design view). The PK is also assigned in table design view. Your
customer table might be something like this:

tblCustomer
CustomerID (primary key, or PK)
FirstName
LastName
Phone
etc.

Then you would have an accounts table:

tblAccounts
AccountID (PK)
CustomerID (foreign key, or FK)
Account Details

Without knowing anything about the nature of these accounts I can't suggest
what fields the table may contain, so I have left it at Account Details for
all the rest of the fields.
Note the FK field. This is established by building a relationship between
CustomerID in tblCustomer and tblAccount. See Help for more about
establishing a relationship, and post back if you have specific questions.
Once you have the tables and relationships you can build some queries.
Queries are a way of sorting and manipulating table data. For instance, you
can build a query based on tblCustomer, sort by LastName, and combine
FirstName and LastName in a FullName field in the query. You will NOT store
the combined name. This is very important. You don't need to store it. You
can see it whenever you want.
You can base a form on either a table or query. The form treats each the
same as the other. Autoform is one way of putting a form together quickly so
that you can experiment. See Help for more.
Here's what I suggest to get started. Make a query based on each of your
tables. Name them qryCustomer and qryAccounts. Use autoform to make a form
out of each query. Name them frmCustomer and fsubAccounts. With frmCustomer
open in design view, drag the icon for fsubAccounts onto it and let go. You
should now have a subform. Switch to form view and enter a customer name and
information, and enter some account information into the subform. Add
another record to the subform. Now create a new record on the main form, and
some more account information for that customer. Keep it simple. After you
have done this a few times, take a look at the tables.
I have used a naming convention for tables, etc. It is sound practice.
Similarly, when you add text boxes and so forth to a form, use a naming
convention for those controls (as they are called). Try a Google groups
search for Access naming conventions or something like that, and name
everything so you can identify it later. This is just my suggestion and not
a requirement, but I really think you will find it makes life easier. Also,
I avoid spaces in names. I would name the table field FirstName, and make
the caption First Name if you like, but keep the spaces out of the "official"
name. Optional, but again it can be very helpful.
Experiment a bit and post back with the questions that will surely arise.
 
Back
Top