PC Review


Reply
Thread Tools Rate Thread

Adding new record for each patient

 
 
Nona
Guest
Posts: n/a
 
      6th Nov 2008
Is there a way to add a new record with values for specified fields for
every patient in the database that meets certain criteria?

For instance, for every patient who has a funding source of 90056, I'd like
to add a record that would give the field called Units a value of "12" and
the field called Status a value of "Approved."

Thanks for your help with this.
--
Nona
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      6th Nov 2008
On Wed, 5 Nov 2008 16:35:02 -0800, Nona <(E-Mail Removed)>
wrote:

>Is there a way to add a new record with values for specified fields for
>every patient in the database that meets certain criteria?
>
>For instance, for every patient who has a funding source of 90056, I'd like
>to add a record that would give the field called Units a value of "12" and
>the field called Status a value of "Approved."
>
>Thanks for your help with this.


An Append query would do the job. You don't post any details of your table
structure and you don't say which table contains the funding source and which
table should get the new records, so I can't be specific, but base an append
query on the table containing the funding source (with a criterion of 90056),
and append to the new table, appending a literal 12 into the Units field.
--

John W. Vinson [MVP]
 
Reply With Quote
 
Nona
Guest
Posts: n/a
 
      6th Nov 2008
I just don't know enough to follow your instructions. I can't get this to
work.

The funding source is in the Patient table. The fields for units and status
field are in a table called Authorizations.

The append query has the "append to" line for the table (Authorizations) and
a "criteria "line. But where do I enter the literal 12?

Or am I just way off-base? (I'm feeling very stupid tonight!)

Thanks for your patience!





--
Nona


"John W. Vinson" wrote:

> On Wed, 5 Nov 2008 16:35:02 -0800, Nona <(E-Mail Removed)>
> wrote:
>
> >Is there a way to add a new record with values for specified fields for
> >every patient in the database that meets certain criteria?
> >
> >For instance, for every patient who has a funding source of 90056, I'd like
> >to add a record that would give the field called Units a value of "12" and
> >the field called Status a value of "Approved."
> >
> >Thanks for your help with this.

>
> An Append query would do the job. You don't post any details of your table
> structure and you don't say which table contains the funding source and which
> table should get the new records, so I can't be specific, but base an append
> query on the table containing the funding source (with a criterion of 90056),
> and append to the new table, appending a literal 12 into the Units field.
> --
>
> John W. Vinson [MVP]
>

 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      6th Nov 2008
On Wed, 5 Nov 2008 20:23:01 -0800, Nona <(E-Mail Removed)>
wrote:

>I just don't know enough to follow your instructions. I can't get this to
>work.
>
>The funding source is in the Patient table. The fields for units and status
>field are in a table called Authorizations.
>
>The append query has the "append to" line for the table (Authorizations) and
>a "criteria "line. But where do I enter the literal 12?
>
>Or am I just way off-base? (I'm feeling very stupid tonight!)
>
>Thanks for your patience!


Just put the literal 12 in a vacant Field cell (prefixed by a fieldname if you
like, Access will call it Expr1 if you don't). Append this field to the Status
field in Authorizations.
--

John W. Vinson [MVP]
 
Reply With Quote
 
Nona
Guest
Posts: n/a
 
      6th Nov 2008
Got it! Many many thanks!
--
Nona


"John W. Vinson" wrote:

> On Wed, 5 Nov 2008 20:23:01 -0800, Nona <(E-Mail Removed)>
> wrote:
>
> >I just don't know enough to follow your instructions. I can't get this to
> >work.
> >
> >The funding source is in the Patient table. The fields for units and status
> >field are in a table called Authorizations.
> >
> >The append query has the "append to" line for the table (Authorizations) and
> >a "criteria "line. But where do I enter the literal 12?
> >
> >Or am I just way off-base? (I'm feeling very stupid tonight!)
> >
> >Thanks for your patience!

>
> Just put the literal 12 in a vacant Field cell (prefixed by a fieldname if you
> like, Access will call it Expr1 if you don't). Append this field to the Status
> field in Authorizations.
> --
>
> John W. Vinson [MVP]
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show One Record For Each Patient ID. BMC Microsoft Access Queries 3 3rd Mar 2010 03:57 PM
New patient record davethewelder Microsoft Access Forms 0 23rd Mar 2009 06:33 PM
SQL to Select the last record for each Patient Wissam Microsoft Access VBA Modules 5 16th Apr 2008 03:47 AM
I am looking for Databases for Hospice Patient Record =?Utf-8?B?TGVt?= Microsoft Access Forms 1 17th May 2007 06:51 PM
Filter records on Patient ID and Record Status =?Utf-8?B?UGF0IERvb2xz?= Microsoft Access Form Coding 3 14th Aug 2006 10:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:04 AM.