Advertisement

06.02.2008 at 12:13PM PDT, ID: 23450983
[x]
Attachment Details

check if data exists in table using vba

Asked by Forensicon in Access Coding/Macros

Tags: microsoft, access, 2003

I am trying to check if data is present in a specific table using vba. So far i have this line of code written but when i try to run it i get "invalid operation"

If CurrentDb.TableDefs("myTBL").Fields("myField").Value Is Not Null Then

when i run it this way i get "object required"

If CurrentDb.TableDefs("myTBL").Fields("myField") Is Not Null Then

what am i doing wrong here.Start Free Trial
[+][-]06.02.2008 at 12:32PM PDT, ID: 21694883

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Access Coding/Macros
Tags: microsoft, access, 2003
Sign Up Now!
Solution Provided By: rgautier
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628