In VBA Access,
How can I read a filed from a table and then read each record in the field and then access each character insided the record for that filed. should I use a split function.
I tried this
After doing this, I can only print the first data filed .
if I try, Debug.Print UpdateTable_sub _data(1)
The script out of range. Why there is not second record in the array??
How can I read a filed from a table and then read each record in the field and then access each character insided the record for that filed. should I use a split function.
I tried this
Code:
Do Until recordset1.EOF UpdateTable_sub_data = findSubCommands(recordset1![data]) recordset1.MoveNext Loop Debug.Print UpdateTable_sub_data(0) ------------------------------------------------------------------------------ Function findSubCommands(str As String) findSubCommands = Split(str, "+") End Function
if I try, Debug.Print UpdateTable_sub _data(1)
The script out of range. Why there is not second record in the array??
Comment