hi i have a program that adds text from a text box to a file with a .txt extension, i now want on form load to display text from that file to a label on form2
Cheers
Merlin ?
Printable View
hi i have a program that adds text from a text box to a file with a .txt extension, i now want on form load to display text from that file to a label on form2
Cheers
Merlin ?
Try this:
Code:Private Sub Form_Load()
Open "MyFile.txt" For Input As #1
Form2.Label1 = Input(LOF(1), 1)
Close #1
End Sub
hi megatron
thanks for your help, it worked brilliantly
Cheers
Merlin ?