How do I get the RecNum (record Number) to change so that it adds 1 (appends) And that LastRec will equal the starting Record that is next to add. FileOpen(fileNumber, "C:\Prayers.dat", OpenMode.Random, OpenAccess.Write, , SizeRecNum) MyPrayers.PrayerName = TextBox2.Text MyPrayers.Prayer = TextBox1.Text RecNum = RecNum + 1 FilePut(fileNumber, MyPrayers, RecNum) FileClose(fileNumber) LastRec = RecNum MsgBox(LastRec)
Reply from Richard Rost:
Not sure I follow what you're trying to do...
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visual Basic Forum.