+ Reply to Thread
Results 1 to 5 of 5

Managing a simple database by reading and creating text files

  1. #1
    Registered User
    Join Date
    06-03-2014
    Location
    Brazil
    MS-Off Ver
    Office 365
    Posts
    52

    Managing a simple database by reading and creating text files

    First let me say I am not confident this is the best way to achieve what I want, if you have any other ideas please tell me!

    What I'm trying to do is a simple sales system, that contains a lot of clients and daily sales of products, and it's important that I work with the data of each client so I know what he likes most, etc.

    The way I see it is that creating a new worksheet for each client is just messy and will eventually weight a ton, so creating a folder for each client and writing log files inside it keeping track of what he bought (all automated) , and then in Excel one could just choose a client's name, it would look up its log, do some regular expression and organize it in the worksheet.

    I know how to do this in Lua and Java, but is it possible in VBA? basically writing/reading files as string and regular expressions

    And what are the functions to do so? what should I look for?

    Thanks in advance.
    Last edited by ppgab; 03-03-2015 at 03:58 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Managing a simple database by reading and creating text files

    Why bother creating a file fore each customer?
    I would create ONE database for ALL customers and a reporting system to allow you to only VIEW one at a time, if that is what you want.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Managing a simple database by reading and creating text files

    If you have access or sql it might be better to set up a real database. Excel can still work with those.
    Just my 2 cents.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Registered User
    Join Date
    06-03-2014
    Location
    Brazil
    MS-Off Ver
    Office 365
    Posts
    52

    Re: Managing a simple database by reading and creating text files

    Quote Originally Posted by Arkadi View Post
    If you have access or sql it might be better to set up a real database. Excel can still work with those.
    Just my 2 cents.
    that would be a fine alternative, but its not what i'm looking to work with atm

    Quote Originally Posted by mikeTRON View Post
    Why bother creating a file fore each customer?
    I would create ONE database for ALL customers and a reporting system to allow you to only VIEW one at a time, if that is what you want.
    You're right, it doesn't really matter, I just thought it would be faster this way.

    Anyways, I need a headstart here guys, really bad when it comes to VBA

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Managing a simple database by reading and creating text files

    Fair enough I'm happy to help resolve issues, but I'm not very good with reading and writing text files from excel in the way you need, so I'll butt out unless stuff comes along I can be useful on. Good luck!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Better method for reading really large text files into an array using VBA
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2015, 06:08 PM
  2. Replies: 11
    Last Post: 07-31-2014, 08:41 AM
  3. Creating a database from multiple files
    By TubbzUK in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-15-2014, 11:53 AM
  4. 2 simple excel files(1 tool and 1 editable database)
    By Christopher Bosch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-29-2012, 03:44 AM
  5. Reading CSV text files
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-21-2010, 04:55 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1