To save the data inputted into a file I used the code displayed below, I wanted it so when you save a file, the program will create a txt file named by whatever data was inputed into to 'TreeId' text box.
for example If I typed 'B101' into the 'TreeID' text box along with the other data (in the other fields) and clicked save, the program would create a new text file called 'B101'containing the data inside the textboxes. I can create individual files aslong as the key feild (TreeID) arnt the same, if they are it will overright any previously stored data (but that isnt the problem).
This Section of the program works perfectly for me, but I havent got a clue how to load the data back into the text boxes (probaly due to my lack of experience), I have tried but failed.
Any help would be much appreciated,
Thanks..
Private Sub Command1_Click()
Dim TreeID As String
TreeID = txtTreeID & ".txt"
Open TreeID For Output As #1
Print #1, txtTreeID
Print #1, txtType
Print #1, txtCondition
Print #1, txtDescription
Print #1, txtLongitude
Print #1, txtLatitude
Print #1, txtTreeImage
Close #1
txtTreeID = ""
txtType = ""
txtCondition = ""
txtDescription = ""
txtLongitude = ""
txtLatitude = ""
txtImage1 = ""

New Topic/Question
Reply




MultiQuote




|