Results 1 to 2 of 2
  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2012

    Alternative way to save file??

    Ok, so in my database i have an admin form, where it allows you to do admin stuff.

    Example: Allows you to enter price per membership, and change it.

    Problem i'm having is how would i save it, since all previous files had more than 1 records, so it would be in the form of:

    FilePut(1, OnePerson, NumberOfRecords + 1)
    Since this file will only cosist of one record, i don't know how i would save it.

    i tried FilePut(1, OnePerson, Index) But it doesn't work.

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Sydney, Australia

    Re: Alternative way to save file??

    Never use FilePut. That is VB6 style I/O. If you want to use a file to store records like a database then use XML or else use a BinaryReader and BinaryWriter.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts


Click Here to Expand Forum to Full Width