Microsoft Access
  Home arrow Microsoft Access arrow Page 3 - Getting to Know Microsoft Access, Part 6: ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MICROSOFT ACCESS

Getting to Know Microsoft Access, Part 6: Advanced Queries and SQL
By: Sage Adams
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 19
    2005-01-12

    Table of Contents:
  • Getting to Know Microsoft Access, Part 6: Advanced Queries and SQL
  • AutoLookup Queries
  • Update Queries
  • Delete Queries
  • SQL (Structured Query Language)

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Getting to Know Microsoft Access, Part 6: Advanced Queries and SQL - Update Queries


    (Page 3 of 5 )

    To create an update query, begin with a new query design, just as you did when you made your first parameter query. Then, select your table(s) and/or query(ies) from which to base your new query from the dialog box, and choose the Query | Update Query menu option in design view. Drag the fields you want to update from the list of fields in the table to the query grid. Enter the expression you wish to use to limit the records you will update in the Criteria cell. Then enter the expressions you’ll use to update the records in the "Update To:" cells. Finally, save and run your query. When you create an insert query the design view looks similar to the following:

    Microsoft Access Part 6: Advanced Queries and SQL

    You’ll notice that the Queries tab shows your new query with a exclamation point attached to it, as a warning, to let you know the query is an action query and as such will produce changes to your data. All the action queries you create are shown in the Queries tab with an exclamation point.

    Append Queries

    Append queries are used to copy fields from one selected table to another table. To create an append query you first need to select the fields you want to copy, and then select the table to copy those fields to, making sure, of course, that the target field has corresponding fields. To create the append query, first start a new query in design view by choosing the table from which you want to take the data, and choose the Query | Append Query menu option. You’ll be prompted to enter a table name. Next, choose the table to which you want to append the data. Select the fields you want to append to the table by dragging and dropping them into the query design grid. Add criteria as you like. Save and run the query. When you create an append query the design view looks similar to the following:

    Microsoft Access Part 6: Advanced Queries and SQL

    More Microsoft Access Articles
    More By Sage Adams


     

    MICROSOFT ACCESS ARTICLES

    - Linking SQL Express 2005 Tables to MS Access...
    - Working with Access Projects in Access 2007
    - Exploring Access 2007
    - Working with Stored Procedures in an MS Acce...
    - Creating and Using Action Queries
    - Creating Data Access Pages with Charts using...
    - Advanced Ideas using VBA
    - VBA Details
    - Updating Records in MS Access
    - Using ADO`s Record Object with URLs
    - Exporting XML from MS Access 2003
    - Importing XML into MS Access 2003
    - On Using Pass-through Queries in MS Access
    - Distributed Queries in MS Access
    - Configuring a Linked Microsoft Access Server...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT