Results 1 to 4 of 4
  1. #1
    paularthur09 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    4

    Question Help - Converting a SQL Query into Access

    Hi,

    Can someone please help me convert the below SQL Server query into an Access friendly version?



    Code:
    select l1.*
    from
    tbl_sac_contract_1516_line l
    join tbl_sac_contract_1516_line l1
    on l.com_CODE = L1.COM_CODE
    AND L1.TYPE = 'NCA'
    where 
    L.c_no = 'c15'
    Any help will be really appreciated.

    Paul

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Can you tell us more about your tables and the application this is intended to support?

  3. #3
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    It should run properly in Access in its current form, assuming there is table tbl_sac_contract_1516_line with relevant fields.

  4. #4
    paularthur09 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2016
    Posts
    4
    Thank you everyone but I have sorted it. I needed brackets around my join.

    Code:
    select l1.*
    from
    [Contract Line] l
    INNER JOIN [Contract Line] L1
    ON (L.Com_Code = L1.Com_Code AND L1.Type = 'NCA')
    where 
    L.c_no = 'c15'

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

Similar Threads

  1. Converting Excel Formula to Access Query Format
    By Guy Winfield in forum Queries
    Replies: 2
    Last Post: 05-11-2015, 06:21 AM
  2. Replies: 10
    Last Post: 11-21-2014, 04:49 PM
  3. Help Converting Oracle PL/SQL Query into Access
    By RThomas321 in forum Queries
    Replies: 5
    Last Post: 11-15-2014, 12:35 PM
  4. Replies: 2
    Last Post: 02-11-2014, 09:41 AM
  5. Converting an Access pivot query to SQL 2005
    By csharpnewbie in forum Queries
    Replies: 1
    Last Post: 10-05-2010, 04:22 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