Hi HuyN_MS,
the reason that ndx and ndx2 is set to 1 is that when in production the text file has a line on top that i don't want to enter into the database. The problem is not reading from the text file it reads all the data from the text file properly. It is the loop that builds the command string to go into the data base that is going crazy.
Like before in the example i gave after i gather the data from the textfile i go into another loop where i will append that data to the database statement from the "qry" variable. dbf holds the values to be entered into the database. for some reason after a few passes of the loop the qry variable stops sending out it's data. for example let's say: qry = "Insert firstname, lastname into table values (Jim , Johnson);" and that it is suppose to loop 10 times.
It will loop and send that command to the database about 7 times then on the 8th time it will cut most of the statment and not repeat the rest.
1: "Insert firstname, lastname into table values (Jim , Johnson)
2: "Insert firstname, lastname into table values (Jim , Johnson)
3 ...
7: "Insert firstname, lastname into table values (Jim , Johnson)
8: "Insert firstname, la
I am trying figure out why is the program cutting the loop off like this.
the reason that ndx and ndx2 is set to 1 is that when in production the text file has a line on top that i don't want to enter into the database. The problem is not reading from the text file it reads all the data from the text file properly. It is the loop that builds the command string to go into the data base that is going crazy.
Like before in the example i gave after i gather the data from the textfile i go into another loop where i will append that data to the database statement from the "qry" variable. dbf holds the values to be entered into the database. for some reason after a few passes of the loop the qry variable stops sending out it's data. for example let's say: qry = "Insert firstname, lastname into table values (Jim , Johnson);" and that it is suppose to loop 10 times.
It will loop and send that command to the database about 7 times then on the 8th time it will cut most of the statment and not repeat the rest.
1: "Insert firstname, lastname into table values (Jim , Johnson)
2: "Insert firstname, lastname into table values (Jim , Johnson)
3 ...
7: "Insert firstname, lastname into table values (Jim , Johnson)
8: "Insert firstname, la
I am trying figure out why is the program cutting the loop off like this.