how to define table and field to program

V

vjt

I have the following line in a program
If IsNull([Test3.cash_bal_amt]) Then GoTo Op22 Els
Test3 is a table, cash_bal_amt is a field in that table. I have tried several ways of putting the name of the field in and it is always rejected as an undefined external file. Test3 exists in the database where the program is located. The database has been defined as Set dbs = CurrentDb and the recordset as Set rst = dbs.OpenRecordset("Test3", dbOpenTable). what changes need to be made to be able to use the table for reading and writing?
 
R

Rick Brandt

vjt said:
I have the following line in a program:
If IsNull([Test3.cash_bal_amt]) Then GoTo Op22 Else
Test3 is a table, cash_bal_amt is a field in that table. I have tried
several ways of putting the name of the field in and it is always rejected
as an undefined external file. Test3 exists in the database where the
program is located. The database has been defined as Set dbs = CurrentDb
and the recordset as Set rst = dbs.OpenRecordset("Test3", dbOpenTable).
what changes need to be made to be able to use the table for reading and
writing?

If you are opening a Recordset against the table in your code then your
code can only access the Recordset, not the table it is based on. Try
using...

rst!cash_bal_amt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top