Solved

Access 2007 recordset question

Posted on 2008-10-31
3
315 Views
Last Modified: 2013-11-27
2nd Access question of the day

pretty simple code here but i'm doing something wrong at the end
I have a table named Checking and a field named Balance but the message box comes back empty

Dim db As Database
Set db = currentdb

   Dim rs As DAO.Recordset
     
   
   Set rs = db.OpenRecordset("Checking")

   
 rs.MoveLast
 
   
   MsgBox Balance

any help is appreciated

0
Comment
Question by:TSTechNA
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
hielo earned 500 total points
ID: 22853686
try:
MsgBox rs.Fields("Balance")
0
 

Author Comment

by:TSTechNA
ID: 22853770
thank you
0
 
LVL 82

Expert Comment

by:hielo
ID: 22854665
you are welcome
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question