The address updates but the city does not.
set newAddress to contents of text field "address" of box "buildinginformation" of window "vieweditbuilding"
set updateAddress to "update buildings set address = '" & newAddress & "' where address = '" & buildingAddress & "'; "
do shell script head & updateAddress & tail
set newCity to contents of text field "city" of box "buildinginformation" of window "vieweditbuilding"
set updateCity to "update buildings set city = '" & newCity & "' where address = '" & buildingAddress & "'; "
do shell script head & updateCity & tail
I could set the update city line to
set updateCity to "update buildings set city = '" & newCity & "' where city = '" & buildingCity & "'; "
But if I do this it will update all cities that match. I only want to update the city in a specific row. Does anyone have any idea’s on this one.