Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

Access 2007 recordset question

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
TSTechNA
Asked:
TSTechNA
  • 2
1 Solution
 
hieloCommented:
try:
MsgBox rs.Fields("Balance")
0
 
TSTechNAAuthor Commented:
thank you
0
 
hieloCommented:
you are welcome
0

Featured Post

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now