Results 1 to 2 of 2
  1. #1
    WickidWe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2013
    Posts
    123

    Insert Into Query With Table data and values


    INSERT INTO tblRelief_Allot ( EmpId )
    SELECT tblEmpDetails.EmpId
    FROM tblEmpDetails;

    I need to INSERT INTO (EmpID, ReliefCode, GRating)
    Only the EmpID is from a table I want ReliefCode, and GRating to be values 28, 1

    How could I Write the Query to INSERT INTO (EmpID, ReliefCode, GRating)
    from the table and values?


  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    SELECT tblEmpDetails.EmpId, 28, 1
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. INSERT query: insert new data only
    By drh in forum Access
    Replies: 2
    Last Post: 04-04-2014, 05:31 PM
  2. Replies: 25
    Last Post: 01-29-2013, 08:49 AM
  3. Replies: 2
    Last Post: 02-04-2012, 01:48 PM
  4. Replies: 0
    Last Post: 03-08-2011, 05:56 PM
  5. Replies: 1
    Last Post: 12-28-2010, 11:24 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