Do you want to store it in a Access database - if so crate the tables in
the DB and refrence a DataSource in VB to that table.
dump the text boxes onto a form and make the following controls -
cmdNext - Goes to the next record
cmdPrev - Goes to previous record
cmdSaveNew - Saves the Current record and makes a new one
- Heres the code for it Note that the Datasource is called
dsThisIsTheDatasource (This Points to the Database) and the record
source is calld rsThisIsTheRecordsource (This points to the Table where
you are storing the data)
Private Sub cmdNext_Click()
dsThisIsTheDatasource.rsThisIsTheRecordsource.MoveNext
End Sub
Private Sub cmdPrev_Click()
dsThisIsTheDatasource.rsThisIsTheRecordsource.MovePrevious
Private Sub cmdT3SaveNew_Click
'Save the Record
dsThisIsTheDatasource.rsThisIsTheRecordsource.Save
dsThisIsTheDatasource.rsThisIsTheRecordsource.AddNew
However if you want to use a flat file (Text File) as a record source
There is a Tuturial called "Interacting with Data in an ASCII Text File"
- Search "Interacting with Data" in the MSDN Libary Visual Studio and
this will come up It will guide you step by step through accessing data
in a Text File
Hope It Helps
smorf
> Who ever reads this out there.....
> I'm looking for a easy way to store information to a file....
> things like: UserName
> Password
> Full Name
> Supervisor Status etc....
> do you have any suggestions???
> plz email me...thanks
> DryIce