Results 1 to 3 of 3
  1. #1
    The_Qiu is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2019
    Posts
    1

    Clearing items with different signs (+) and (-)

    Hi Access Guru's



    I have a table with tbl_desc and tbl_amount columns. In the amount coulmn i have values (+) and (-).

    I would like to delete all records that have same tbl_desc and opposite sign from my table.

    Would it be possible to get this with querie or macro/SQL is required ?

    Thank you in advance for any help with that.

    TZ

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    So you want to keep the positive records?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    qsPos query to pull all + items
    qsNeg query to pull all - items
    in Query3, join the qsPos to qsNet on [Desc] and ABS(Amt) .
    and make a delete query on Q3.

    Note: delete queries must be done similar to FIND DUPLICATE QUERIES.
    use the query wizard to make a Find Duplicate query, look at the design, build the same IN structure for your delete query.

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

Similar Threads

  1. Numbers turning to number signs
    By bradp1979 in forum Reports
    Replies: 5
    Last Post: 09-17-2015, 03:10 PM
  2. Replies: 1
    Last Post: 12-18-2011, 01:09 AM
  3. Getting rid of ### signs
    By Lorlai in forum Access
    Replies: 6
    Last Post: 07-27-2011, 01:29 PM
  4. Replies: 0
    Last Post: 03-08-2011, 11:07 AM
  5. Pound signs restoring tables
    By Djacsnp in forum Access
    Replies: 2
    Last Post: 04-20-2010, 05:42 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