Solved

Access 2007 recordset question

Posted on 2008-10-31
3
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

734 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