I have a problem with msflexgrid. I have few field in a form and a msflexgrid with few rows. I want if i double click on the row then the information should go to the relevant field. I have done it but the problem is when i click 1st row or 2nd second then it is OK but when i click more than that means 3rd 4th... then the message is appear. "Subscript out of range" and when i click on debug then it is highlight
private sub msflexgrid1_dbc lick()
row=.rowsel
with msflexgrid1
item_Name.text= .textmatrix(row ,1)
item_code.text= .textmatrix(row ,2)
item_generic.te xt=.textmatrix( row,3)
--
---
---
--
end sub
the problem is if i delete from itm_generic to the end then it is ok else it is highlight the third one show the message
please help me on this regard
private sub msflexgrid1_dbc lick()
row=.rowsel
with msflexgrid1
item_Name.text= .textmatrix(row ,1)
item_code.text= .textmatrix(row ,2)
item_generic.te xt=.textmatrix( row,3)
--
---
---
--
end sub
the problem is if i delete from itm_generic to the end then it is ok else it is highlight the third one show the message
please help me on this regard