I'm a fairly new Access user (self-taught)and have created a report where, in one field I would like to have Access look at one date field and compare it to another and make a decision on what it finds. Specifically, I'm trying to say:
if InvoiceDate is Null, print the QuoteDate, otherwise leave this field blank
and this is the expression I used:
=IIf(IsNull([InvoiceDate]),[QuoteDate], " ")
In the field, in print preview, I get the message #Error.
I'm not sure if I've used the right expression, if I have spaces where I shouldn't or vice versa or if I'm even doing this in the right place. I thought maybe this would be better done in VB and I do have some VB experience but I'm not sure where you would code VB in Access.
Can anyone help???
if InvoiceDate is Null, print the QuoteDate, otherwise leave this field blank
and this is the expression I used:
=IIf(IsNull([InvoiceDate]),[QuoteDate], " ")
In the field, in print preview, I get the message #Error.
I'm not sure if I've used the right expression, if I have spaces where I shouldn't or vice versa or if I'm even doing this in the right place. I thought maybe this would be better done in VB and I do have some VB experience but I'm not sure where you would code VB in Access.
Can anyone help???