473,387 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Using data from one Access database in another

jh
The situation:

A database is wanted. It's purpose is to show some co-workers' skills.

Therefore I will need to make a database that contains names and the posts
"skill1", "skill2", "skill3" etc. (YES/NO-posts)
This should be easy; one table in a simple database, but...

In the company we already have another database containing the co-workers
work-ID-number and their names. I would like to use this existing
information in the new database, then we will not need to maintain another
database with names.
(and no, I'm not allowed to extend the already existing database with
skills)

Therefore; a new database which "collects" certain information from an old
database.
The new database must of course synchronise with the old, so the name
information always will be the same in the 2 databases, meanwhile the new
database can hold the "skill1", "skill2", "skill3" etc. to a certain
co-worker.

Hoping for some tips.

Regards
hansen

Nov 13 '05 #1
5 1475
Create your new database.

Link the Worker table from the other database:
File | Get External | Link

Create a Skill table with fields:
SkillID Text Name of the skill (primary key)

Create a WorkerSkill table, with fields:
WorkerID foreign key to the WorkerID in the linked table.
SkillID foreign key to the Skill table.

Create a main form bound to the Worker table.
Add a subform bound to the WorkerSkill table.
In the subform, include a combo that has the Skill table as its RowSource.

In the subform, you can then select as many skills as apply to the worker in
the main form, one per row.

(This is a *way* better data structure than having lots of yes/no fields in
one table. For example you don't need to change the entire data structure
just to add one more skill.)

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

"jh" <vc> wrote in message
news:43*********************@dread16.news.tele.dk. ..
The situation:

A database is wanted. It's purpose is to show some co-workers' skills.

Therefore I will need to make a database that contains names and the posts
"skill1", "skill2", "skill3" etc. (YES/NO-posts)
This should be easy; one table in a simple database, but...

In the company we already have another database containing the co-workers
work-ID-number and their names. I would like to use this existing
information in the new database, then we will not need to maintain another
database with names.
(and no, I'm not allowed to extend the already existing database with
skills)

Therefore; a new database which "collects" certain information from an old
database.
The new database must of course synchronise with the old, so the name
information always will be the same in the 2 databases, meanwhile the new
database can hold the "skill1", "skill2", "skill3" etc. to a certain
co-worker.

Hoping for some tips.

Regards
hansen

Nov 13 '05 #2
Hi Allen, and thanks. It doesn't seem to work; maybe I've misunderstood a
detail or two. I have some questions :-)

"Allen Browne" <Al*********@SeeSig.Invalid> skrev i en meddelelse
news:43***********************@per-qv1-newsreader-01.iinet.net.au...
Create your new database.

Link the Worker table from the other database:
File | Get External | Link
ok
Create a Skill table with fields:
SkillID Text Name of the skill (primary key)
Do you mean 3 fields (SkillID, Text and Name of skill)? which is primary
key?
Create a WorkerSkill table, with fields:
WorkerID foreign key to the WorkerID in the linked table.
SkillID foreign key to the Skill table.
Should I choose "referential integrity" or one of the 3 options in the
dialogue box "join type"?
Create a main form bound to the Worker table.
Add a subform bound to the WorkerSkill table.
In the subform, include a combo that has the Skill table as its RowSource.
ok
In the subform, you can then select as many skills as apply to the worker
in the main form, one per row.

(This is a *way* better data structure than having lots of yes/no fields
in one table. For example you don't need to change the entire data
structure just to add one more skill.)

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

Nov 13 '05 #3
Embedded answers.

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

"Mr. Hansen" <mr@hansen.com> wrote in message
news:43*********************@dtext02.news.tele.dk. ..
Hi Allen, and thanks. It doesn't seem to work; maybe I've misunderstood a
detail or two. I have some questions :-)

"Allen Browne" <Al*********@SeeSig.Invalid> skrev i en meddelelse
news:43***********************@per-qv1-newsreader-01.iinet.net.au...
Create your new database.

Link the Worker table from the other database:
File | Get External | Link
ok
Create a Skill table with fields:
SkillID Text Name of the skill (primary key)


Do you mean 3 fields (SkillID, Text and Name of skill)? which is primary
key?


No. That's one field (the way it appears in table design view.)
Create a WorkerSkill table, with fields:
WorkerID foreign key to the WorkerID in the linked table.
SkillID foreign key to the Skill table.
Should I choose "referential integrity" or one of the 3 options in the
dialogue box "join type"?


2 fields above.

Yes, in the Relationships window, you will create a relation with RI to the
Skill table.

You will not be able to create a relation with RI to the attached Worker
table.
Create a main form bound to the Worker table.
Add a subform bound to the WorkerSkill table.
In the subform, include a combo that has the Skill table as its
RowSource.


ok
In the subform, you can then select as many skills as apply to the worker
in the main form, one per row.

(This is a *way* better data structure than having lots of yes/no fields
in one table. For example you don't need to change the entire data
structure just to add one more skill.)

Nov 13 '05 #4
> No. That's one field (the way it appears in table design view.)

ah, sure. :-)
Create a WorkerSkill table, with fields:
WorkerID foreign key to the WorkerID in the linked table.
SkillID foreign key to the Skill table.
Should I choose "referential integrity" or one of the 3 options in the
dialogue box "join type"?


2 fields above.

I mean which to choose? (screenshot here:
http://www.cse.dmu.ac.uk/~mjdean/not...s/image033.jpg)
Yes, in the Relationships window, you will create a relation with RI to
the Skill table.

You will not be able to create a relation with RI to the attached Worker
table.


It doesn't allow me to choose RI between Skill table and WorkerSkill Table.

Almost there :-)

Nov 13 '05 #5
The join type in the Relationships window is irrelevant. (All it does is set
the default join in future queries. I don't find that useful: if I need to
create out joins, I want to do that manually.)
You should be able to create a relation with enforced RI between your Skill
and WorkerSkill table if:
- Both tables are in the same mdb file (not linked).
- The fields are the same type and size in both tables.
- The field from the Skill table (probably SkillID) is the primary key.

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

"Mr. Hansen" <mr@hansen.com> wrote in message
news:43*********************@dtext02.news.tele.dk. ..
No. That's one field (the way it appears in table design view.)


ah, sure. :-)

Create a WorkerSkill table, with fields:
WorkerID foreign key to the WorkerID in the linked table.
SkillID foreign key to the Skill table.

Should I choose "referential integrity" or one of the 3 options in the
dialogue box "join type"?


2 fields above.

I mean which to choose? (screenshot here:
http://www.cse.dmu.ac.uk/~mjdean/not...s/image033.jpg)
Yes, in the Relationships window, you will create a relation with RI to
the Skill table.

You will not be able to create a relation with RI to the attached Worker
table.


It doesn't allow me to choose RI between Skill table and WorkerSkill
Table.

Almost there :-)

Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: nospam | last post by:
I got three (3) files (1) Untitled.aspx (2) Untitled.aspx.1.cs (3) Untitled.aspx.2.cs These three files must be used together to make file #1, Untitled.aspx, page work via J.I.T. when the...
38
by: Remco Groot Beumer | last post by:
Hello, I'm trying to decide if the following situation would be workable: Generate an MS Access Front End (which will run localy on client computers), which will link to a DBMS (SQL server or...
4
by: intl04 | last post by:
How do I create a data input form in Access that is external to the Access database to which it's connected (if that's possible, which I believe it is)? For example, if someone clicks on an Access...
1
by: Matt Alanzo | last post by:
On another newsgroup an Access knowledgable party posted: >You should be able to connect an Access ADP to an existing SQLExpress >database running in SQLS 2000 compatibility mode. The only thing...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
2
by: Bob | last post by:
How do I program vb.net to copy a query or table from one MS Access database to another? I'd like to accomplish what import does when it copies Access objects (primarily queries but some tables)...
10
by: Robert | last post by:
How do you get an accurate count of the number of records returned from a query when using linked tables. I have an access 2003 database as a front end to another access 2003 database that...
1
by: xcelmind | last post by:
Hello Dev. Guru, I want to at this time introduce myself. I am Stanley Ojadovwa by name. I’m a freelance and a newbie in web application development. I’m currently using ASP as my application...
6
Banfa
by: Banfa | last post by:
It came to my attention in another thread that Access is no longer the rather crippled excuse for a relational database that it seemed to be in version 1. It appears that it may have moved on a...
10
by: MLH | last post by:
Suppose, in a multi-user environment, you have append query SQL in a VBA procedure that looks like INSERT INTO MyTable... and the next line reads MyVar=DMax("","MyTable... You can never be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.