Why Random Access Files?

Why Random Access Files?

Why/when would you use Random Access Files in VBA? Ironically they're hardly random! They're very specific but not sequential ;)

Unlike working with CSV or text files which are typically read (and written) sequentially in their entirety (before you do anything with the data) Random Access allows you to read in (or write out) specific records as you need them.

So, for instances where you're working with smaller or specific sets of data for a calculation or report Random Access Files work very well and have the following advantages:-

  • resulting spreadsheet/s can be a lot smaller in size (don't need ALL records loaded)
  • targeted reading / writing of records is fast
  • data is secure - The structure of records and the data types result in records having an encryption of sorts so the data has little chance of being used/misused outside the spreadsheet.

[More to follow]

#excel #vba #accessanalytic #randomaccess

To view or add a comment, sign in

More articles by Robert Hind

  • Does your contract Rise and Fall let you down?

    When you're providing products or services in a long term relationship there is usually a contract which will typically…

  • Shared Excel Templates

    Smart use of Excel (or other Office applications) should feature use of templates. In a business those templates should…

  • Random Access Files ..how?

    [This is a follow up to the article "Why Random Access Files" (in VBA)] Random Access Files work because, unlike…

  • Thousands of files - one report?

    Do you have thousands of records contained in a multitude of files that sit in a folder and sub folders? Microsoft's…

  • Multibillion-dollar investments in resources industry set to continue

    Multibillion-dollar investments in the resources industry will continue despite the mining boom being over, Diggers and…

  • Addressing the world!

    I've often thought that Post Codes in Australia in particular needed a drastic overhaul so that postcodes could be…

  • My new assistant..

    Meet my new (virtual) assistant. Amy Ingram.

  • The Rise and Fall ..of the Escalation Formula

    It is a tough world out there and businesses often give away every single advantage they have to win work ..

  • SmartWard empowers hospital staff to focus more on patients

    The weekend AFR (Jan 2/3, 2016) published an article about SmartWard. It shows we all need to question and not take…

Explore content categories