Ok... I have backups of all my movies on my computer... I am trying to make a database of them using VB. I already made one with OOCalc (Open Office Excel basically). Anyways... my code to enter a movie in the data base is as follows:
(Please keep in mind i rushed this code and didnt do alot of the standard naming)
Private Sub Command2_Click()
Open "C:\Movies\Data Base\Name.txt" For Append As #1
Write #1, txtname.Text
Close #1
Open "C:\Movies\Data Base\Location.txt" For Append As #1
Write #1, txtlocation.Text
Close #1
Open "C:\Movies\Data Base\imdb.txt" For Append As #1
Write #1, txtimdb.Text
Close #1
Open "C:\Movies\Data Base\personal.txt" For Append As #1
Write #1, txtpersonal.Text
Close #1
Open "C:\Movies\Data Base\year.txt" For Append As #1
Write #1, txtyear.Text
Close #1
Open "C:\Movies\Data Base\genre1.txt" For Append As #1
Write #1, txtgenre1.Text
Close #1
Open "C:\Movies\Data Base\genre2.txt" For Append As #1
Write #1, txtgenre2.Text
Close #1
Open "C:\Movies\Data Base\Director.txt" For Append As #1
Write #1, txtdirector.Text
Close #1
Open "C:\Movies\Data Base\Lead1.txt" For Append As #1
Write #1, txtlead1.Text
Close #1
Open "C:\Movies\Data Base\Lead2.txt" For Append As #1
Write #1, txtlead2.Text
Close #1
Open "C:\Movies\Data Base\Lead3.txt" For Append As #1
Write #1, txtlead3.Text
Close #1
MsgBox "Data saved"
End Sub
Now what I want to do is add another form to the project. I want this for to be able to read from the text files and use it as a database so that when I select a movie from the drop down list, it will display all the data and have a button to open winamp to play the movies. I have no idea on how to go about this and any help will be appreciated. Thanks :)