Add Data to a Grid
Posted: Wed Dec 18, 2013 10:16 pm
				
				Hello, 
I am trying to add data to a data grid.
I have this code
But it does work in the data grid.  What am I doing wrong here
			I am trying to add data to a data grid.
I have this code
Code: Select all
on mouseUp
       put databaseGetContactDetails() into field "contact details"
   put databaseGetContactDetails() into "Data Grid 1"
   
    
end mouseUp
function databaseGetContactDetails
    ## Query the database for contact details to be displayed in the field
    put getDatabaseID() into tDatabaseID
    put "SELECT * from contact_details" into tSQL
    put revDataFromQuery(tab,return,tDatabaseID,tSQL) into tRecords
    return tRecords
end databaseGetContactDetails
