Automatically filling in information

S

Shazza

Is there a way of automatically filling in a field in access 2000 ie i have a
database of trainees doing skillseekers so they are working for an employer
and gaining a qualification i have seperated my tables i think appropriately
and use the National insurance number as a unique identifier in several of my
tables so rather than having to type it in several times how can i get access
to fill it in for me it is first put into delegate details table
 
A

AndyB via AccessMonster.com

Hi Shazza,

I'm assuming you have a main table which contains the details of the trainees.
(Name, Address, NI No. etc.) Then a secondary table which contains details of
their employment and qualifications achieved in a third table maybe?

If this is the case, I would be inclined to use Forms & Sub Forms - Reports &
Sub Reports.
That way, there's always a link between the main data table & the sub data,
(and sub-sub data if necessary)
Data for reporting can be pulled from all relevant tables by 'Queries' or SQL
statements in the report's RecordSource proprty.
No need to repeat the NI No. in each table.

If you need pointers on sub forms & reports, let me know.

You can also set up 'Referential Integrity' between the tables, but I find
this can get to be a handful.

Andy
 
S

Shazza

Thanks Andy. At the moment i am just playing around and giving myself a
nervouse breakdown trying to figure out the most basic of things when i
finally figure out how to break up my tables and relate them together i will
then start on the forms so you will probably hear me screeming :)
 
J

John W. Vinson

Is there a way of automatically filling in a field in access 2000 ie i have a
database of trainees doing skillseekers so they are working for an employer
and gaining a qualification i have seperated my tables i think appropriately
and use the National insurance number as a unique identifier in several of my
tables so rather than having to type it in several times how can i get access
to fill it in for me it is first put into delegate details table

Well... the national insurance number would be a suitable primary key for some
tables but not for others! A job skill, for instance, would not have a
national insurance number. How are your tables structured? Are you trying to
enter data directly into tables (unwise) or using Forms, with combo boxes and
other such tools?
 
S

Shazza

I havn't started entering data yet i am still trying to figure out how to set
the tables up first and seperate them as there is a lot of detail that is
needed. Once i get the tables sorted out i will then start on the forms
 
A

AndyB via AccessMonster.com

Hi Shazza,

If you can give us some idea of the sort of data you are storing and the
reports you need to produce, we might have a better idea of how to advise.

I would still suggest a main table with the trainee's personal details and
secondary tables where there is more than one record per trainee.

Linking the tables, either thru referential integrity or sub-forms & reports
will avoid repetition of data.

Andy
I havn't started entering data yet i am still trying to figure out how to set
the tables up first and seperate them as there is a lot of detail that is
needed. Once i get the tables sorted out i will then start on the forms[quoted text clipped - 8 lines]
enter data directly into tables (unwise) or using Forms, with combo boxes and
other such tools?
 
S

Shazza

Ok here goes at the moment we are putting far to much data onto excel about
young skillseeders and the courses they do along with their employer. so
they sent me on an introduction to Access course so that i could build up a
database to hold all of the information the tables i have set up are as
follows:
Delegate details (showing where they live and contact details,
delegate requirements to see if they need accommodation and what type =
start and end dates for courses.
Lodging Information for if they need accommodation detailing their contact
info
College details showing contact details
Company details showing contact info
Courses stating what colleges offer what
course level options to show what levels each delegate has achieved and
Course details showing costs course names start and end detas etc
Now i am under the impression that i have to have the national insurance
number in each of the tables (my unique identifier for each delegate) so that
i can print of reports showing how much each delegate cost, which areas they
are from, what courses they have taken and where they went to work etc etc
which is a bind because i have to enter the NI number an awful lot of times.
am i correct in thinking this because i cant think of a way of linking all of
the information together
thank you for your help its much appreciated
Sharon


AndyB via AccessMonster.com said:
Hi Shazza,

If you can give us some idea of the sort of data you are storing and the
reports you need to produce, we might have a better idea of how to advise.

I would still suggest a main table with the trainee's personal details and
secondary tables where there is more than one record per trainee.

Linking the tables, either thru referential integrity or sub-forms & reports
will avoid repetition of data.

Andy
I havn't started entering data yet i am still trying to figure out how to set
the tables up first and seperate them as there is a lot of detail that is
needed. Once i get the tables sorted out i will then start on the forms
Is there a way of automatically filling in a field in access 2000 ie i have a
database of trainees doing skillseekers so they are working for an employer
[quoted text clipped - 8 lines]
enter data directly into tables (unwise) or using Forms, with combo boxes and
other such tools?
 
A

AndyB via AccessMonster.com

Hi Sharon,
Sorry for the delay in responding - I've been a bit busy.

Your table structure looks fine and gives plenty of flexibility in how you
link your forms and reports.
Your next task is to really understand the concept of linking your data.
There is no need to use the NI number as your primary reference.
Think of your delegates table as the main data source in your database, with
all other tables linked to it.
Insert an autonumber field into your Delegates table and name it 'ID'
Inset a number field in all other tables and name them 'Main ID'
Now create a form with your delegates table as it's record source and insert
a 'tab control' onto it.
Modify the tab control so you have a separate page for your delegates info
and for each of your sub-tables.
The controls (text boxes etc) for your delegates can be inserted on the
'Delegates' tab.
Now create forms for all other tables.
Insert each of these forms onto the relevant tabs on your delegates form as
sub-forms.
As you insert each sub-form, you will be prompted to link 'Child and Master'
fields in the associated tables.
It'll generally give you a default link of 'ID to ID'. In all cases, choose
'Define My Own' and link the 'ID' field in the master table with the 'Main
ID' field in the child table.
Now you've got these links in place, every time you create a record in a sub-
form, the 'ID' field value of the Delegates table will automatically be
copied to the 'Main ID' field of your sub-tables.
Your reports can be constructed in a similar manner, with main reports with
record source of the delegates table and sub-reports with record source of
the relevant sub-table or query.

If you have a situation where your delegates take more than one course at a
particular college, then achivements could be recorded in a sub-sub table and
entered through a sub-sub form, inserted into the college sub-form which is
inserted in the main delegates form. (Reports, sub Reports and Sub-Sub
Reports are also feasible)

Whith this set up properly, when you select a particular delegate on the main
form or report, only data relating to the delegate will be displayed in the
sub-form or report.

Oh! and always remember a few golden rules:
Never enter data directly into a table. (Access should never be treated as a
spreadsheet)
Never print a table or form - always create a report for your final out-put.
Never manually input 'link' data - always find a way to do it automatically.
Always name all your database objects as something descriptive to their
function.
(e.g. call your delegates table 'tbl delegates' and your delegates form 'frm
delegates' whereas your employer objects could be called 'stbl employer' &
'sfrm employer') - Makes life so much easier when linking complex structures
and when you start using VBA coding.

I hope this is helpful.
I think this site is called 'Access Monster' because newcommers to access
rarely understand what a huge, complex beast it can be.

The help files will give you good leads on Tab Controls and Sub Forms &
Reports.

Regards,

Andy
Ok here goes at the moment we are putting far to much data onto excel about
young skillseeders and the courses they do along with their employer. so
they sent me on an introduction to Access course so that i could build up a
database to hold all of the information the tables i have set up are as
follows:
Delegate details (showing where they live and contact details,
delegate requirements to see if they need accommodation and what type =
start and end dates for courses.
Lodging Information for if they need accommodation detailing their contact
info
College details showing contact details
Company details showing contact info
Courses stating what colleges offer what
course level options to show what levels each delegate has achieved and
Course details showing costs course names start and end detas etc
Now i am under the impression that i have to have the national insurance
number in each of the tables (my unique identifier for each delegate) so that
i can print of reports showing how much each delegate cost, which areas they
are from, what courses they have taken and where they went to work etc etc
which is a bind because i have to enter the NI number an awful lot of times.
am i correct in thinking this because i cant think of a way of linking all of
the information together
thank you for your help its much appreciated
Sharon
Hi Shazza,
[quoted text clipped - 17 lines]
 

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