Hello, I wrote some code that loops over several thousands .CSV files, imports them into a remote table, alters the data to be compatible with the database, and stores them in another remote table. After every file it also checks both the import to and export to tables to ensure they are not approaching the size limit. If the export table is approaching the size limit, it simply creates a new table and starts writing to that. If the import table is approaching the size limit, it compacts the table (the import table is cleared out before every import).
Anyway, between each successful .CSV file upload, I would like to update a text box ,on the form, with the total size of the files thus far successfully compiled, combined with the starting size of the entire folder with .CSV files in it, and of course an expected time of finish.
This is all very easy math, and I have it set to do exactly what I want it to, except it doesn't actually refresh the values of these text boxes until the code is finished. Is there a way to get it to do so without prompting the user for some type of input?
The bottom line is exactly that. I could post the code if someone really thinks it would be useful to know, but there's tons of it. Here's some fake pseudo-code that is essentially the same thing I want done:
currently, if i were to run this in access, the form would "freeze up" while the code is running, and then display 100 at the end. I would like it to display the count (1.... 2..... 3.... et cetera).
Anyway, between each successful .CSV file upload, I would like to update a text box ,on the form, with the total size of the files thus far successfully compiled, combined with the starting size of the entire folder with .CSV files in it, and of course an expected time of finish.
This is all very easy math, and I have it set to do exactly what I want it to, except it doesn't actually refresh the values of these text boxes until the code is finished. Is there a way to get it to do so without prompting the user for some type of input?
The bottom line is exactly that. I could post the code if someone really thinks it would be useful to know, but there's tons of it. Here's some fake pseudo-code that is essentially the same thing I want done:
Code:
x = 1 while x <= one hundred trillion if x mod one trillion = 0 then [Text0] = x / one trillion end if x = x + 1 wend
Comment