Another query...formulae query

E

Enderjit Singh

I am trying to set up a query ideally as a module in vb to
do the following:

Date1 minus Date 2 (If Date2 IS NULL) then minus Date 3,
giving a return value in weeks or days. Can anyone help?
 
N

Newbie

You can set this as the control source of a text box

=IIf(IsNull([DTE2]),DateDiff("d",[DTE1],[DTE3]),DateDiff("d",[DTE1],[DTE2]))

HTH
Al
 

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

Top