Click here to Skip to main content
15,901,122 members

Comments by Raven Saint (Top 1 by date)

Raven Saint 12-Jun-15 9:46am View    
I have a similar issue. Though in the reverse.
I have form1 where I have a listbox that populates from a load command. No worries there. It saves a created *.txt file that my data is written to.
Now I have a form 2 which needs to write that data to the Form1 Listbox and save to the *.txt file without overwriting the original file already there. I have the form 1 working. Can callup the Form 2, but a similar problem as the OP is what I have. I can write more information if needed.
Could possibly be a function or query, but have no idea on how this can be done.

Form2 opens > Enter text into Text Box "txtTextForm2" > on click of "addInventForm2" send text to lstTextForm1 and save to *.txt File (writeline Method) > Form2 Box closes once coding has run adding text to file > Form1Listbox1 refreshes and now has text added to lstTextForm1 in addition to the text that was already present.