Code: Select all
put "SELECT * FROM customers WHERE company = '"&company& "'" into dbSQL
put revDataFromQuery(tab,return,connectionID,dbSQL) into dbData
if item 1 of dbData = "revdberr" then
answer error "There was a problem" & cr & dbData
end if
answer dbData
I would like to populate text fields with the data from the query. In this instance, what I'm after is something along the lines of dbData[collum1] dbData[collum2]. The queries that will be run only return 1 row from the database.