If result.Tag = "GetLast30Days" Then 'query tag
ProgressDialogHide
LOCALCreateSalesTable
Msgbox("Table Created","")
Dim ListOfMaps As List
ListOfMaps.Initialize
For Each row() As Object In result.Rows
ListOfMaps.Add(CreateMap("Units_Sold": row(0), "Total_Retail": row(1), "Brand": row(2), "Store": row(3), "Region": row(4), "Sales_Person": row(5), "Sale_Date": row(6)))
DBUtils.InsertMaps(SQL1, "sales_end_user", ListOfMaps)
Next
End If