Sage 100

 View Only
  • 1.  Best way to skip blank records in VI

    Posted 07-23-2020 19:05
    The import csv file has a a date column that may or may not have data in it. I want to overwrite the SO Promise Date if it contains data and leave the existing Promise Date if it does not.

    What's the best way to skip records with a blank field during the import?

    ------------------------------
    Greg Stiles
    S & W Microsystems
    Torrance CA
    310.787.1010
    ------------------------------


  • 2.  RE: Best way to skip blank records in VI
    Best Answer

    Posted 07-23-2020 23:11
    One way is on Data tab, on PromiseDate field, do a Replace pointing it to the column in the CSV file containing the PromiseDate. But also add a Conditional Expression like this:

    NOT(NUL(STP(IMP$[10])))

    Replace the 10 with the actual column number for PromiseDate from the CSV file.

    ------------------------------
    Alnoor Cassim

    Accounting Systems, Inc. (ASI)
    Email: alnoor@asifocus.com
    Orange County, CA
    ------------------------------



  • 3.  RE: Best way to skip blank records in VI

    Posted 07-24-2020 11:12
    Edited by Greg Stiles 07-24-2020 11:12
    Excellent, @Alnoor Cassim  I will try that today.

    I understand NOT, NUL & IMP$[10], what is STP?​

    ------------------------------
    Greg Stiles
    S & W Microsystems
    Torrance CA
    310.787.1010
    ------------------------------



  • 4.  RE: Best way to skip blank records in VI

    Posted 07-24-2020 15:18
    STP function strips out blanks.  STP is also an oil treatment.

    ------------------------------
    Lee Graham
    Friendly Systems, Inc.
    ------------------------------



  • 5.  RE: Best way to skip blank records in VI

    Posted 07-24-2020 16:47
    "The Racers Edge" (age showing LOL)

    ------------------------------
    Greg Stiles
    S & W Microsystems
    Torrance CA
    310.787.1010
    ------------------------------



  • 6.  RE: Best way to skip blank records in VI

    Posted 07-24-2020 17:02
    Thanks @Alnoor Cassim & @Lee Graham works great!​​

    ------------------------------
    Greg Stiles
    S & W Microsystems
    Torrance CA
    310.787.1010
    ------------------------------