Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Access VBA How To Check a Table To See If The Field Value Is Null

Avatar of Dustin Stanley
Dustin Stanley asked on
Microsoft AccessVBA
6 Comments1 Solution426 ViewsLast Modified:
I have a form and in that form I have a textbox after I update the value in the unbound textbox I want to check a table to see if the field value is Null

Form is called frmHomePage

Textbox is called SKU

Table I am checking is called SKUs and the field is called SkuLength

I am checking on [SKUs].[SKU] = [Forms]![frmHomePage]![SKU]

So far the code I have is this but it is not working:

Dim SKUid As String

SKUid = [Forms]![frmHomePage]![SKU]

If DCount(1, "SKUS", "IsNull([SkuLength] WHERE [SKUs].[SKU] = SKUid)") > 0 Then
MsgBox "Has nulls"
Else
MsgBox "Complete!"
End If

Thanks for the help.
ASKER CERTIFIED SOLUTION
Avatar of Kelvin Sparks
Kelvin SparksFlag of New Zealand image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answers