15bb4 Re: Append Query question!
Sign Up |  Live StatsLive Stats    Articles 37,345| Comments 177,362| Members 19,420, Newest Talia| Online 412
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Re: Append Query question!

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Update or Append query help B Miller Information Technology 3 28-Jul-2006 08:34 AM
Using a record set in an append query rg Information Technology 3 28-Jul-2006 08:32 AM
Fast append query question VisualBasic@versatel.nl Information Technology 3 28-Jul-2006 08:18 AM
Import/Append Question Parker Information Technology 4 04-Nov-2005 15:20 PM
append query salmonella Information Technology 0 01-Nov-2005 13:40 PM


Tags
append, query, question
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:17 AM
Mark Cline's Avatar Mark Cline
Guest
 
Posts: n/a
   
   
Re: Append Query question!

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
I put that into the criteria area of my append query and got syntax errors
that I could not correct as I am new to this. Is there a misplaced
paranthesis somewhere?

"Brendan Reynolds" wrote:

> Here's an example that uses two copies of the Orders table from the
> Northwind database ...
>
> INSERT INTO Orders2 ( OrderID, CustomerID, EmployeeID, OrderDate,
> RequiredDate, ShippedDate, ShipVia, Freight, ShipName, ShipAddress,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10984-re-append-query-question.html
> ShipCity, ShipRegion, ShipPostalCode, ShipCountry )
> SELECT Orders1.OrderID, Orders1.CustomerID, Orders1.EmployeeID,
> Orders1.OrderDate, Orders1.RequiredDate, Orders1.ShippedDate,
> Orders1.ShipVia, Orders1.Freight, Orders1.ShipName, Orders1.ShipAddress,
> Orders1.ShipCity, Orders1.ShipRegion, Orders1.ShipPostalCode,
> Orders1.ShipCountry
> FROM Orders1 WHERE Orders1.OrderID NOT IN (SELECT Orders2.OrderID FROM
> Orders2);
>
> --
> Brendan Reynolds
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10984
> Access MVP
>
>
> "JOM" wrote in message
> news:13FAADA8-A28D-4634-9508-912681A4DF2D@microsoft.com...
> > Is it possible to do append query to unique records. As in If one forgets
> > and presses the append query more than once, there is a possiblility that
> > the
> > same records would be appended more that once. What I would like to do is
> > one runs the append query, don't append the same records or have duplicate
> > records in the appended table...

>
>
>





Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:17 AM
Brendan Reynolds's Avatar Brendan Reynolds
Guest
 
Posts: n/a
   
   
Re: Append Query question!

What exactly did you put in the criteria area of your query? In the example
I posted, the criteria is everything between 'WHERE' and the semi-colon,
exclusive, that is to say not including the word 'WHERE' or the semi-colon.
And of course you would need to change the table and field names to your
actual table and field names.

--
Brendan Reynolds
Access MVP


"Mark Cline" Cline@discussions.microsoft.com> wrote in message
news:F1C70878-1244-4CBF-A1BD-2AE72EB29B6F@microsoft.com...
>I put that into the criteria area of my append query and got syntax errors
> that I could not correct as I am new to this. Is there a misplaced
> paranthesis somewhere?
>
> "Brendan Reynolds" wrote:
>
>> Here's an example that uses two copies of the Orders table from the
>> Northwind database ...
>>
>> INSERT INTO Orders2 ( OrderID, CustomerID, EmployeeID, OrderDate,
>> RequiredDate, ShippedDate, ShipVia, Freight, ShipName, ShipAddress,
>> ShipCity, ShipRegion, ShipPostalCode, ShipCountry )
>> SELECT Orders1.OrderID, Orders1.CustomerID, Orders1.EmployeeID,
>> Orders1.OrderDate, Orders1.RequiredDate, Orders1.ShippedDate,
>> Orders1.ShipVia, Orders1.Freight, Orders1.ShipName, Orders1.ShipAddress,
>> Orders1.ShipCity, Orders1.ShipRegion, Orders1.ShipPostalCode,
>> Orders1.ShipCountry
>> FROM Orders1 WHERE Orders1.OrderID NOT IN (SELECT Orders2.OrderID FROM
>> Orders2);
>>
>> --
>> Brendan Reynolds
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10984
>> Access MVP
>>
>>
>> "JOM" wrote in message
>> news:13FAADA8-A28D-4634-9508-912681A4DF2D@microsoft.com...
>> > Is it possible to do append query to unique records. As in If one
>> > forgets
>> > and presses the append query more than once, there is a possiblility
>> > that
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10984
>> > the
>> > same records would be appended more that once. What I would like to do
>> > is
>> > one runs the append query, don't append the same records or have
>> > duplicate
>> > records in the appended table...

>>
>>
>>



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:17 AM
Brendan Reynolds's Avatar Brendan Reynolds
Guest
 
Posts: n/a
   
   
Re: Append Query question!

  Donate Today!  

Correction - if you were typing that into the criteria row in query design
view, you would also leave out the name of the column, so the criteria would
look like ...

NOT IN (SELECT Orders2.OrderID FROM Orders2)

.... not forgetting to replace 'Orders2' with the name of your target table
(the table to which you are appending) and 'OrderID' with the name of a
suitable column (the primary key column or another column with a unique
index).

--
Brendan Reynolds
Access MVP

"Brendan Reynolds" wrote in message
news:%23rfaU4uiGHA.456@TK2MSFTNGP05.phx.gbl...
> What exactly did you put in the criteria area of your query? In the
> example I posted, the criteria is everything between 'WHERE' and the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10984
> semi-colon, exclusive, that is to say not including the word 'WHERE' or
> the semi-colon. And of course you would need to change the table and field
> names to your actual table and field names.
>
> --
> Brendan Reynolds
> Access MVP
>
>
> "Mark Cline" Cline@discussions.microsoft.com> wrote in message
> news:F1C70878-1244-4CBF-A1BD-2AE72EB29B6F@microsoft.com...
>>I put that into the criteria area of my append query and got syntax errors
>> that I could not correct as I am new to this. Is there a misplaced
>> paranthesis somewhere?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10984
>>
>> "Brendan Reynolds" wrote:
>>
>>> Here's an example that uses two copies of the Orders table from the
>>> Northwind database ...
>>>
>>> INSERT INTO Orders2 ( OrderID, CustomerID, EmployeeID, OrderDate,
>>> RequiredDate, ShippedDate, ShipVia, Freight, ShipName, ShipAddress,
>>> ShipCity, ShipRegion, ShipPostalCode, ShipCountry )
>>> SELECT Orders1.OrderID, Orders1.CustomerID, Orders1.EmployeeID,
>>> Orders1.OrderDate, Orders1.RequiredDate, Orders1.ShippedDate,
>>> Orders1.ShipVia, Orders1.Freight, Orders1.ShipName, Orders1.ShipAddress,
>>> Orders1.ShipCity, Orders1.ShipRegion, Orders1.ShipPostalCode,
>>> Orders1.ShipCountry
>>> FROM Orders1 WHERE Orders1.OrderID NOT IN (SELECT Orders2.OrderID FROM
>>> Orders2);
>>>
>>> --
>>> Brendan Reynolds
>>> Access MVP
>>>
>>>
>>> "JOM" wrote in message
>>> news:13FAADA8-A28D-4634-9508-912681A4DF2D@microsoft.com...
>>> > Is it possible to do append query to unique records. As in If one
>>> > forgets
>>> > and presses the append query more than once, there is a possiblility
>>> > that
>>> > the
>>> > same records would be appended more that once. What I would like to
>>> > do is
>>> > one runs the append query, don't append the same records or have
>>> > duplicate
>>> > records in the appended table...
>>>
>>>
>>>

>
>



Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Rochester Gurdwara...
Today 10:55 AM
2 Replies, 54 Views
How does Sikhi help you...
Today 10:24 AM
45 Replies, 1,119 Views
Is Science a Religion?
Today 09:53 AM
11 Replies, 1,948 Views
Woolwich Killing: The...
Today 07:49 AM
15 Replies, 178 Views
US Congress panel passes...
Today 04:22 AM
0 Replies, 33 Views
Harmeet Kaur Took the...
Today 03:40 AM
0 Replies, 47 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:43 AM
319 Replies, 7,692 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 00:36 AM
182 Replies, 4,601 Views
Panjabi Alphabet Resource
Yesterday 23:15 PM
12 Replies, 6,558 Views
Transgenderism ... Right...
Yesterday 22:55 PM
30 Replies, 1,364 Views
Biography of a Scholar:...
Yesterday 22:53 PM
1 Replies, 66 Views
Dusting The Web
Yesterday 22:25 PM
0 Replies, 40 Views
How Pure the Tongue? New...
Yesterday 21:29 PM
0 Replies, 54 Views
Stockholm riots throw...
Yesterday 21:14 PM
1 Replies, 40 Views
Biography of a Scholar:...
Yesterday 18:59 PM
2 Replies, 169 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 11:55 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.85526 seconds with 32 queries
0