Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Creating database and wish to automate

 
   Database Help (Home) -> MS Access -> Tables DB Design RSS
Next:  hello  
Author Message
Theresa

External


Since: Feb 27, 2008
Posts: 4



(Msg. 1) Posted: Mon Dec 15, 2008 7:08 am
Post subject: Creating database and wish to automate
Archived from groups: microsoft>public>access>tablesdbdesign (more info?)

I have been working on a database (for a really long time) and getting
nowhere. I am stuck on how to get data in a field from one table into
another. Specifically- I have a table listing patient demographics in
separate fields (MR#(Key), Last Name, Address...). The next step is to go to
a table (Relationship is the MR# field) that l list each hospital episode
data (admission date, diagnosis, physician...). There can be many hospital
records for each patient. I am currently stuck at the point where I would
like to enter the MR# on the hospitalization table and the last name and
first name from the demographics table automatically fills in when the MR#
match. As soon as I get this down, I am sure I will come up with another
issue, but I have to start somewhere. Thanks, Theresa

 >> Stay informed about: Creating database and wish to automate 
Back to top
Login to vote
Roger Carlson

External


Since: Jan 14, 2008
Posts: 145



(Msg. 2) Posted: Mon Dec 15, 2008 10:21 am
Post subject: Re: Creating database and wish to automate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You shouldn't do that. As long as you have the MR# linking the two tables,
you can join them any time you need the patient name.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L


"Theresa" wrote in message

>I have been working on a database (for a really long time) and getting
> nowhere. I am stuck on how to get data in a field from one table into
> another. Specifically- I have a table listing patient demographics in
> separate fields (MR#(Key), Last Name, Address...). The next step is to go
> to
> a table (Relationship is the MR# field) that l list each hospital episode
> data (admission date, diagnosis, physician...). There can be many hospital
> records for each patient. I am currently stuck at the point where I would
> like to enter the MR# on the hospitalization table and the last name and
> first name from the demographics table automatically fills in when the MR#
> match. As soon as I get this down, I am sure I will come up with another
> issue, but I have to start somewhere. Thanks, Theresa

 >> Stay informed about: Creating database and wish to automate 
Back to top
Login to vote
Theresa

External


Since: Feb 27, 2008
Posts: 4



(Msg. 3) Posted: Mon Dec 15, 2008 10:21 am
Post subject: Re: Creating database and wish to automate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you so much. I am looking for a way that when you go to the Hospital
admission form/table and type in a mr # you can verify the patients name and
make sure the patient has a record in the demographics table. any suggestions
on ow to accomplish that. I know this is pretty basic but I appreciate your
time. Maybe when going into the Hospital adimssin form, the first and last
name are placed on the form somehow and not stored as additional data. Also,
I would like to look patient up by last name to complet the hospitaization
form. I maybe approaching this all wrong.

Thank you,
Theresa


"Roger Carlson" wrote:

> You shouldn't do that. As long as you have the MR# linking the two tables,
> you can join them any time you need the patient name.
>
> --
> --Roger Carlson
> MS Access MVP
> Access Database Samples: www.rogersaccesslibrary.com
> Want answers to your Access questions in your Email?
> Free subscription:
> http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
>
>
> "Theresa" wrote in message
>
> >I have been working on a database (for a really long time) and getting
> > nowhere. I am stuck on how to get data in a field from one table into
> > another. Specifically- I have a table listing patient demographics in
> > separate fields (MR#(Key), Last Name, Address...). The next step is to go
> > to
> > a table (Relationship is the MR# field) that l list each hospital episode
> > data (admission date, diagnosis, physician...). There can be many hospital
> > records for each patient. I am currently stuck at the point where I would
> > like to enter the MR# on the hospitalization table and the last name and
> > first name from the demographics table automatically fills in when the MR#
> > match. As soon as I get this down, I am sure I will come up with another
> > issue, but I have to start somewhere. Thanks, Theresa
>
>
>
 >> Stay informed about: Creating database and wish to automate 
Back to top
Login to vote
Bob Waggoner

External


Since: Dec 15, 2008
Posts: 16



(Msg. 4) Posted: Mon Dec 15, 2008 10:21 am
Post subject: Re: Creating database and wish to automate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Theresa, because access is a relational database, you can create forms and
reports from more than one table. When you access the data, do you want to
access it on a form or report?The way you link those tables (by your key MR#)
allows you to draw information from both tables. You may simply want to
create a subform or subreport that uses the data from both tables.

Table 1 (key MR#)
Table 2 (foreign key MR#)


"Theresa" wrote:

> Thank you so much. I am looking for a way that when you go to the Hospital
> admission form/table and type in a mr # you can verify the patients name and
> make sure the patient has a record in the demographics table. any suggestions
> on ow to accomplish that. I know this is pretty basic but I appreciate your
> time. Maybe when going into the Hospital adimssin form, the first and last
> name are placed on the form somehow and not stored as additional data. Also,
> I would like to look patient up by last name to complet the hospitaization
> form. I maybe approaching this all wrong.
>
> Thank you,
> Theresa
>
>
> "Roger Carlson" wrote:
>
> > You shouldn't do that. As long as you have the MR# linking the two tables,
> > you can join them any time you need the patient name.
> >
> > --
> > --Roger Carlson
> > MS Access MVP
> > Access Database Samples: www.rogersaccesslibrary.com
> > Want answers to your Access questions in your Email?
> > Free subscription:
> > http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L
> >
> >
> > "Theresa" wrote in message
> >
> > >I have been working on a database (for a really long time) and getting
> > > nowhere. I am stuck on how to get data in a field from one table into
> > > another. Specifically- I have a table listing patient demographics in
> > > separate fields (MR#(Key), Last Name, Address...). The next step is to go
> > > to
> > > a table (Relationship is the MR# field) that l list each hospital episode
> > > data (admission date, diagnosis, physician...). There can be many hospital
> > > records for each patient. I am currently stuck at the point where I would
> > > like to enter the MR# on the hospitalization table and the last name and
> > > first name from the demographics table automatically fills in when the MR#
> > > match. As soon as I get this down, I am sure I will come up with another
> > > issue, but I have to start somewhere. Thanks, Theresa
> >
> >
> >
 >> Stay informed about: Creating database and wish to automate 
Back to top
Login to vote
John W. Vinson

External


Since: Nov 16, 2007
Posts: 1727



(Msg. 5) Posted: Mon Dec 15, 2008 3:07 pm
Post subject: Re: Creating database and wish to automate [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Mon, 15 Dec 2008 08:08:04 -0800, Theresa
wrote:

>Thank you so much. I am looking for a way that when you go to the Hospital
>admission form/table and type in a mr # you can verify the patients name and
>make sure the patient has a record in the demographics table. any suggestions
>on ow to accomplish that. I know this is pretty basic but I appreciate your
>time. Maybe when going into the Hospital adimssin form, the first and last
>name are placed on the form somehow and not stored as additional data. Also,
>I would like to look patient up by last name to complet the hospitaization
>form. I maybe approaching this all wrong.

Well, you're not taking full advantage of the tools that Access provides!

As Roger says, you should NOT store the name or other demographics redundantly
in any second table. Relational databases use the "Grandmother's Pantry
Principle": "A place - ONE place! - for everything, everything in its place".

I would use a Form to enter the data. You should almost certainly NOT make the
user type in a MR# (and then slap their hand if they make a mistake); instead
they should *select* the MR# from a Combo Box. You could also (or instead)
have a combo box displaying the last (and first, and MR#) name, but storing
the MR# in your table. With the default autocomplete feature turned on, they
can start to type the number or name and it will jump to the first value
starting with what they type. The Combo Box can also display the patient's
name; or, you can put textboxes on the form with control sources like

=comboboxname.Column(n)

where n is the zero-based index of the field you want to display from the
combo's row source query.

--

John W. Vinson [MVP]
 >> Stay informed about: Creating database and wish to automate 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
How to automate creation of database? - The following code results in "No Such interface supported". What am I doing wrong? I'm trying to create an Access database. thanks, Siegfried 'ADOXcatalog.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &...

Database creating - Need help with business order It should be like this example: BUSINESS ORDER Id Order: (ex. MK 01/01, MK 02/01, MK 03/01...) Date: Customer - Name Customer Order - many activity (ex. 1. cutting material, drilling material, up to 10 or more activities)....

creating a contracts database - Ok, so I'm starting over from scratch. It seems like the more I read the more confused I become. Anyway, I need to create this database where we can input data about our contracts (specifically; contract#, contract name, our contact person, their..

Creating a header in an existing database - I have an existing data base I woud like to create a additional header for a certain column of data

need help creating a database for a school library in msa - I have basic knowledge using access and im trying to help my school get some kind of database set up for checking in and out books. I need something basic that will: 1) allow me to enter the books that we have in the library to keep track of them 2)...
   Database Help (Home) -> MS Access -> Tables DB Design All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]