NULL problem

B

Beccy Howard

I have added this to my code to help ignore NULL values
when running the code, the only problem is now it is
somehow automatically inserting values in the LastDNAdate
field.

For example:

Before I run the module I have the following

LastDNAdate (column)
Row1 20030831
Row2
Row3 20030831
Row4
Row5 20030831

After I run the code I have the following:
LastDNAdate (column)
Row1 20030831
Row2 20030831
Row3 20030831
Row5 20030831
Row6 20030831



If IsNull(rkb![LastDNAdate]) Then
LastDNAdate = ""
Else
dnadate = Right$(rkb![LastDNAdate], 2) & "/" &
Mid$(rkb![LastDNAdate], 5, 2) & "/" & Mid$(rkb!
[LastDNAdate], 3, 2)
dnadate2 = DateValue(dnadate)
End If
 

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

Similar Threads

Ignoring Blank fields 2
Copying problem!!! 3
Nz function still a problem 3
Autofill Qry 4
Run time Error 4
Running Sum and Sum of X-Consecutive Values 1
How do I get the query to display? 3
need query 12

Top