Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2010
    Posts
    22

    UPDATE Statement Correct Syntax

    Good morning,

    I would like to write an UPDATE Statement properly and wondered if anyone would mind helping? Here's my totally nebbie logic:

    UPDATE - TAT (field) in QuoteLineItems2 (table)
    SET - TAT (field) = QuoteHeading (form)

    What am I trying to do? Move data from a form into a table with an UPDATE.



    Thanks in advance for your consideration.

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    here is a typical Update Query SQL syntax:

    UPDATE Table1 SET Table1.Employee_Status = [Forms]![Form1]![Status]
    WHERE Table1.Employee_ID=2;

    Table1 is the name of the Table

    Employee_Status is the Field in the table that I want to Update. You will notice that this is written after SET. The value of the Control Status on Form Form1 is taken to update employee status.

    The Criteria of Update follows the WHERE. If you leave the Where Clause out of the SQL update query then all of the records will get updated.

    To lear more about update Queries follow the link below.

    http://www.blueclaw-db.com/accessque...tement_sql.htm

  3. #3
    Join Date
    Sep 2010
    Posts
    22
    Thank you Maximus!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. dcount syntax correct?
    By lbgtp in forum Reports
    Replies: 2
    Last Post: 12-29-2010, 10:01 AM
  2. Case Statement Syntax
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 1
    Last Post: 11-16-2010, 07:18 PM
  3. IIf Statement Syntax Error
    By shexe in forum Queries
    Replies: 2
    Last Post: 10-06-2010, 08:35 AM
  4. What is the correct syntax for
    By giladweil in forum Access
    Replies: 1
    Last Post: 07-29-2010, 04:56 AM
  5. Select statement syntax?
    By ksmith in forum Programming
    Replies: 3
    Last Post: 06-24-2010, 09:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums