Thanks for the responce,
"take this line: Data.Add(row) and put it after the the Next, so you can include all the table fields instead of only one, but there is not enough info for me to be sure.
I actually tried that. As for all the records I am just testing with the one record because multiples didn't work either. I should be able to pull all the fields of one record and show then as a single item in a row but it doesn't work. As I said the fields are retrieved ok and show in the logging window but I cannot get them to be added to the table
the code is the same for all fields but with a higher iteration number.
This code works for adding multiple records and gives me the fields as columns and records as rows
Do While B4XPages.MainPage.rst.NextRow
row(0) =B4XPages.MainPage.rst.Getstring("P1")
row(1) =B4XPages.MainPage.rst.Getstring("P2")
row(2) =B4XPages.MainPage.rst2.GetInt("P3")
row(3) =B4XPages.MainPage.rst.Getstring("P4")
row(4) =B4XPages.MainPage.rst.Getstring("P5")
row(5) =B4XPages.MainPage.rst.Getstring("P6")
B4XPages.MainPage.rst.NextRow
Data.Add(row)
LOOP
However what I want to do is add the fields as rows so if this was to give me 10 rows from 10 records with 6 fields then I would want 6 rows per record giving me 60 rows, i.e
Row 1 would be Record one field P1
Row 2 Record one field P2
Row 3 Record one field P3
Row 4 Record one field P4
Row 5 Record one field P5
Row 6 Record one field P6
Row 7 Record TWO field P1
Row 8 Record TWO field P2
...