Morning, its my first time using SQL select arrays, the query is working fine but when it comes to displaying it to my listbox the query results do not show, there is no error message but four column width lines representing where my results should be. Is it simply a property setting on my listbox. Any ideas? This is my code:
partnumber = thisform.text1.value
select ;
bom.bomchild, ;
partmaster.partdesc, ;
bom.bomqty, ;
bom.bomqty ;
from efacs_tables!bom inner join efacs_tables!partmaster ;
on bom.bomchild == partmaster.partnum;
where bom.bomparent == partnumber ;
order by bom.bompos ;
into array a_query1
if a_query1(1,1) = " " then
= messagebox('There is no Bom Child Number for this part.',16,'No Search')
else
thisform.list1.rowSourceType = 5
thisform.list1.rowSource = 'a_query1'
endif
partnumber = thisform.text1.value
select ;
bom.bomchild, ;
partmaster.partdesc, ;
bom.bomqty, ;
bom.bomqty ;
from efacs_tables!bom inner join efacs_tables!partmaster ;
on bom.bomchild == partmaster.partnum;
where bom.bomparent == partnumber ;
order by bom.bompos ;
into array a_query1
if a_query1(1,1) = " " then
= messagebox('There is no Bom Child Number for this part.',16,'No Search')
else
thisform.list1.rowSourceType = 5
thisform.list1.rowSource = 'a_query1'
endif