Advance Help Needed With #num!

G

Guest

I have tried to get answers before with no help, so now I have two problems.
First, I am linking to excel and whatever fields contain blanks, I am getting
a #num! error. I can filter out most with an <>0 in the condition field of a
query. However I have run into a problem I can not fix. I have two dates,
date1 and date2. I created a field in a query as followes
RD:iif([date1]<>0,[date1],[date2]) and it does not work. What I am trying to
do is if a date is found in date1 use it, if not, use date2. Because of the
#num! promblem, I can not get the iif statement to work. Please someone help
me!

Chris
 
G

Guest

Try this --
RD:iif([date1] Is Not Null,[date1],[date2])

If the field is null it is not zero. Zero is a value but Null has no value.
 

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

Query for count of temperature ranges 2
How to make a query like this ? 2
Access Dcount (multiple criteria) 3
Help with Union 2
ranking two reports 1
IIF question 3
Problem with Date Query 6
Can't sort by expression 5

Top