Dim item, Account, location As String
item = "123"
Account = "ABC"
location = "Test"
sql.ExecNonQuery2("UPDATE Table SET Item=? WHERE Location=? AND Account=? IF ROW_COUNT()=0 INSERT INTO Table (Account, Location, Item) VALUES (?,?,?)",Array (item,location,Account,Account,location,item))