Home > Articles > Databases > Access

Storing Your Access Data

Paul Kimmel
  • PrintPrint
  • Share ThisShare This
  • DiscussDiscuss
Close WindowPaul Kimmel

Paul Kimmel 

Learn more…

Debugging Client-Side JavaScript for ASP.NET with Visual Studio
Sep 16, 2009
Using Entity SQL As Your Data Access Layer
Dec 2, 2008
Programming with LINQ to XML for Objects
Nov 21, 2008
Bill Wagner on C#, LINQ, and Writing Books
Oct 6, 2008
Writing LINQ Queries with the Entity Framework
Sep 23, 2008
Using Parallel LINQ
Aug 15, 2008
Programming with Anonymous Types in C#
Aug 11, 2008
Querying SQL with LINQ
Jul 28, 2008
Writing Lambda Expressions in the .NET Framework
Jun 11, 2008
Programming with Generic Delegates in .NET
May 8, 2008
Managing Database Transactions with the TransactionScope
Sep 7, 2007
Letting ADO.NET Write Your SQL
Jun 8, 2007
Using C#'s yield to Return an Enumerable Collection
Apr 27, 2007
Using the My Feature in Visual Basic .NET
Sep 8, 2006
Programming with the BackgroundWorker Component in .NET 2.0
Apr 7, 2006
How to Use Partial Classes in Visual Studio 2005
Jan 13, 2006
Generic Classes in C# 2.0
Nov 11, 2005
Anonymous Methods in C# 2.0
Oct 28, 2005
Implementing an XML Section Handler in .NET
Sep 16, 2005
.NET Remoting: Handling Remote Server Events
Feb 11, 2005
Converting XML Nodes into Objects
Dec 10, 2004
Using Application Blocks for Data Access
Oct 22, 2004
A Roll of the Dice: Building a Small Game Using Windows Graphics Programming
Oct 1, 2004
Through the Looking Glass: Debugging Hosted .NET Applications
May 13, 2004
Listening to Trace Messages in NUnit
May 7, 2004
Instrumenting Your Code for Exception Management
Dec 23, 2003
What's .NET Remoting, And Why Should You Care?
Dec 12, 2003
Injecting Dynamic JavaScript to Focus ASP.NET Controls
Oct 10, 2003
Defining Add and Remove Accessor Methods for Events in VB.NET
Apr 18, 2003
Debugging .NET with NUnit
Mar 14, 2003
Dynamic Debug Code Management with BooleanSwitches
Feb 28, 2003
Creating Typed DataSets with XML Schemas
Jan 24, 2003
Fall Comdex 2002: .NET or .What?
Jan 10, 2003
Managing Session State for ASP.NET
Nov 15, 2002
Creating Project Templates in .NET
Oct 25, 2002
Creating Custom Attributes in Visual Basic .NET
Oct 11, 2002
Asynchronous Web Services
Sep 20, 2002
Inheritance and Polymorphism in VB.NET
Aug 9, 2002
Serializing Objects to a .NET DataSet
Jul 19, 2002
Implementing the Strongly Typed Collection in C#
Jul 5, 2002
Emitting MSIL with Reflection
Jun 28, 2002
Programming with Regular Expressions in C#
Jun 21, 2002
Creating Data-Enabled Web Pages using the DataList
Mar 8, 2002
Creating Visual Studio .NET Add-Ins
Mar 8, 2002
Lightweight Threading with Thread Pools in Visual Basic .NET
Mar 8, 2002
Understanding Delegates in Visual Basic .NET
Mar 8, 2002
Working with New Abstract Data Types in Visual Basic .NET
Mar 8, 2002
Storing Your Access Data
Feb 8, 2002
Adding Data to Web Pages
May 11, 2001

Sorry, this author hasn't posted any blogs.

Learn how to store data temporarily in RAM, using the essential data-declaration statements, Popup Hints, the Locals and Watches windows, the Immediate window, and the call stack.

This sample chapter is excerpted from Sams Teach Yourself Microsoft Access 2002 Programming in 24 Hours.

All programs use data. Access is a kind of program that uses two types of data: permanent and temporary. Permanent data can be stored in a database; this type of data is remembered even when Access is not running in memory. Temporary data, on the other hand, is used by your program in memory but is not kept in memory when your Access program is not running.

Permanent memory involves the use of magnetic media, such as a floppy or hard disk drive, a CD-ROM drive, or a tape drive. Temporary memory is the memory used in integrated semiconductor computer chips, called Random Access Memory, or RAM.

In this hour, you will learn how to store data temporarily in RAM. The temporary RAM memory is where data manipulation occurs. You might store some kinds of data permanently, but no usable data will exist on your hard disks or tapes unless it is used in RAM memory.

Your computer and the Windows operating system handle much of the hard part of using RAM. You must, however, take some specific steps to use data in your programs, and you'll learn about these steps in this hour.

In this hour, you will learn

  • How to use the essential data-declaration statements

  • How to use and evaluate data with code

  • How to use Access pop-up hints

  • How to try code in the Immediate window

  • How to use the Watches window

  • How to use the call stack

How Memory Is Used

Permanent memory and temporary memory are both important to Access programmers. Database files are stored on your hard drive when your Access programs aren't running, and they are copied to RAM when you need to use them in your programs.

Hard disk drives use magnetism to encode data. RAM uses microswitches. Fortunately for us, the computer handles magnetizing hard drives and electrifying semiconductor switches. The computer also handles the accessing of disk drives and semiconductor memory. The operating system gets the data from RAM and disk drives. The workhorse behind these operations is the microprocessor. If you have an Intel Pentium 800, for example, that big semiconductor controls the movement of data in and out of RAM.

The electrical wire along which information travels is referred to as a bus. The microprocessor's address and data bus store the information of where data resides in memory. The piece of the puzzle I haven't yet discussed is the bridge between the memory address of data and how you refer to it.

A microprocessor needs some specific instructions and an address to use computer data internally. The missing piece includes the code you write and the VBA compiler. When you write code, you use the Visual Basic for Applications (VBA) language. Access has a compiler that converts what you write into addresses the computer can use.

A compiler is a program that converts text written in a programming language to machine-readable code that the computer can use.

A compiler is the necessary bridge between the text you write in a programming language and memory, which is what the computer needs to carry out your instructions. Memory is where your program does its work. When you declare a variable in your Access program, the compiler assigns an address to that variable.

  • Share ThisShare This
  • Your Account

Discussions

Make a New Comment

You must log in in order to post a comment.

Related Resources

There are currently no related podcasts. Please check back later.

Buck WoodyDealing with Data Defining the Components to Tune
By Buck Woody on 0:00 No Comments

I've been reading a fascinating article about the Large Hadron Collider, or LHC facility. It's a scientific research facility that houses a particle collider, which generates an incredible amount of data. Their original plan was to stream the data to tape, then sending the data to "islands" closer to the users, offloading the network as quickly as possible. But they found that the network could handle the streaming better than they thought - so they now stream the data directly to the users, saturating the network. It's a new way of thinking about moving the data around.

Buck WoodyWork Swarms
By Buck Woody on August 24, 2010 No Comments

I’ve been reading some excerpts from Gartner, Inc. and information from others on the changes they are seeing in the workplace. It’s holding true where I work and in the workplaces of the other data professionals I work with. One of those new trends is called “Swarming” – where informal teams get together to work on a particular project, and in some cases a single task, as a group. They then move on to another task, and so on, like a swarm of bees. These are less formal than the “Tiger Teams” I used to be part of that were also temporary, but had a more formal banding and dis-banding. The Gartner article states that this is more often the norm in companies than not.

Buck WoodyA combination of crowdsourcing, people helping people, and the best technical community there is
By Buck Woody on August 19, 2010 No Comments

I talk a lot about “giving back”. It’s a personal issue with me – I grew up quite poor, and from time to time someone would take notice that my mom and I didn’t have enough to eat, and they would help us out. I’ve never forgotten those folks.

See All Related Blogs

Informit Network