Results 1 to 2 of 2
  1. #1
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    670

    Run Two Delete Queries

    Is it possible to combine these two individual queries to one? The whole Is Null always throws a damper and curve ball on me! They work perfect indepently, but trying to reduce lines of code



    Code:
    DELETE Left([Field With Space],3) AS Field1
    FROM listABC
    WHERE (((Left([Field With Space],3))<>"LDA"));
    
    
    DELETE 
    [listABC].[Field With Space]
    FROM listABC
    WHERE (((
    [listABC].[Field With Space]) Is Null));

  2. #2
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    Maybe
    Code:
    DELETE 
    [listABC].[Field With Space]
    FROM listABC
    WHERE ((
    [listABC].[Field With Space]) Is Null) OR (Left([Field With Space],3))<>"LDA");
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 1
    Last Post: 10-06-2016, 07:03 AM
  2. Update, delete and insert queries between two tables
    By ideasfactory in forum Queries
    Replies: 5
    Last Post: 05-19-2015, 08:25 AM
  3. Archive and Delete Queries
    By Canadiangal in forum Access
    Replies: 3
    Last Post: 04-20-2013, 02:34 PM
  4. Replies: 2
    Last Post: 01-24-2012, 02:16 PM
  5. Append/Delete Queries
    By donnan33 in forum Queries
    Replies: 3
    Last Post: 01-13-2012, 03:01 PM

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