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

Adding records to a table

 
Goto page Previous  1, 2
   Database Help (Home) -> MS Access RSS
Next:  Constant value in queries  
Author Message
Nona

External


Since: Mar 26, 2008
Posts: 35



(Msg. 16) Posted: Thu Jan 01, 2009 8:25 pm
Post subject: Re: Adding records to a table [Login to view extended thread Info.]
Archived from groups: microsoft>public>access (more info?)

I can't believe in my good fortune in getting so much help!

Here is the MakeTable query statement I used.
SELECT qryConsumers.CLN, qryConsumers.CFN, qryConsumers.IsAge,
qryConsumers.County, qryAuthRecords.ConsumerNo2, qryAuthRecords.AuthStart,
qryAuthRecords.AuthEnd, qryAuthRecords.ServiceCode,
qryAuthRecords.AuthsStatus, qryAuthRecords.CostCtr, qryAuthRecords.Source
INTO tblToAppend
FROM qryConsumers LEFT JOIN qryAuthRecords ON qryConsumers.ConsumerNo1 =
qryAuthRecords.ConsumerNo2
WHERE (((qryConsumers.County)="Buncombe") AND
((qryAuthRecords.Source)="IPRS"));

This includes the fields that are to be updated in the next step. The
underlying consumers query has already selected active consumers and computes
the patients' ages.

I would really like to learn how to eliminate the duplicate records because
it's very likely this exercise will have to be repeated with another service
code. If this isn't enough information, please let me know.

Thank you very very much.




--
Nona


"John W. Vinson" wrote:

> On Thu, 1 Jan 2009 17:19:15 -0800, Nona
> wrote:
>
> >Thanks for this additional information. I'll definitely work on this. I've
> >never done a "delete" query, but I'll figure it out! John, I know you said
> >the Maketable Query was an unnecessary step, but I really felt safer updating
> >the data in the new table before appending.
> >
> >This is precisely why I love working with Access - I never get tired of the
> >challenges, and there's always something new to learn. I especially
> >appreciate the help I've gotten from this discussion group site. No where
> >else could I have gotten such good training on so many Access issues. Many
> >Thanks.
>
> If you'ld like help for future reference, please post the SQL view of the
> MakeTable query; I'd be glad to show you how to tweak it to be unique.
>
> Thanks, Tina, for taking care of Nona and so many others here - and apologies
> for jumping in on your thread!
>
> --
>
> John W. Vinson [MVP]
>

 >> Stay informed about: Adding records to a table 
Back to top
Login to vote
John W. Vinson

External


Since: Nov 16, 2007
Posts: 1727



(Msg. 17) Posted: Thu Jan 01, 2009 9:34 pm
Post subject: Re: Adding records to a table [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Thu, 1 Jan 2009 20:19:00 -0800, Nona
wrote:

>I can't believe in my good fortune in getting so much help!
>
>Here is the MakeTable query statement I used.
>SELECT qryConsumers.CLN, qryConsumers.CFN, qryConsumers.IsAge,
>qryConsumers.County, qryAuthRecords.ConsumerNo2, qryAuthRecords.AuthStart,
>qryAuthRecords.AuthEnd, qryAuthRecords.ServiceCode,
>qryAuthRecords.AuthsStatus, qryAuthRecords.CostCtr, qryAuthRecords.Source
>INTO tblToAppend
>FROM qryConsumers LEFT JOIN qryAuthRecords ON qryConsumers.ConsumerNo1 =
>qryAuthRecords.ConsumerNo2
>WHERE (((qryConsumers.County)="Buncombe") AND
>((qryAuthRecords.Source)="IPRS"));
>
>This includes the fields that are to be updated in the next step. The
>underlying consumers query has already selected active consumers and computes
>the patients' ages.
>
>I would really like to learn how to eliminate the duplicate records because
>it's very likely this exercise will have to be repeated with another service
>code. If this isn't enough information, please let me know.
>
>Thank you very very much.

What's the ultimate goal, in terms of which fields update which table?

For that matter... if you already have consumers in the Consumers table, why
do you need to create a new consumers table?

Let's take a step back: where is the information coming from, and where is it
going? And why do new records need to be added rather than just accumulating
records in two (or more?) related tables?

--

John W. Vinson [MVP]

 >> Stay informed about: Adding records to a table 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Adding records to a table using a listbox - Hi, hope you can help. Background: To find out who attended a meeting. Query: I have 2 list boxes: Listbox 1 = listing employees names Listbox 2 = to list employees names of who attended a meeting. So, when I double click an employee on listbox1 I..

Adding records to a table based on the value of one field .. - My question is what will be the fast algorithm to add records in a table based on the value of a field of other table. For example: TABLE2 contains two fields ID and DESCRIPTION TABLE1 contains three fields ID, DESCRIPTION and TOTALNUMBER Then, how to..

Need help with VBA for Access in going through a table and.. - I am an old FoxPro programmer having trouble transitioning to Access, and I have a hot project to work on. I have a record for a company. That record has a field of account numbers. The account number field can have from 1 to 16 account numbers in it...

Adding new records - I am a new user of Access, and i was hired to create a database using existing information and to add new information. I have finished my database and it is very simplistic, there are no calculations only forms and tables. i have 398 records from past...

Adding new records - In form 'Orders' i've a combo field connected with names of products. How can i do a option for adding new products from this form- not in 'Products' form?
   Database Help (Home) -> MS Access All times are: Pacific Time (US & Canada)
Goto page Previous  1, 2
Page 2 of 2

 
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 ]