Multi field of date filter

F

Frank Situmorang

Hello,

Previously below string is connected by AND, how if I changed them to OR,
because what I want is any date field which have the same range date taken
from form filter will be shown in the report. Will it work?

'Build filter string
strFilter = "[Dateof Birth] " & strDOB & _
" OR [DateofBaptized] " & strDtBaptized & _
" OR Dateof Marriage] " & DateofMarriage & _
" OR [DateofDeath] " & strDateofDeath

Thanks for any idea
 
D

Douglas J. Steele

Did you try it? That probably would have been faster than posting and
waiting for an answer...

What's in strDOB, strDtBaptized etc?
 
R

Ron2006

As I look at what you posted, I DON'T see any condition being
specified.

However, in general, if you change the OR to an AND then ALL four of
the conditions would have to be satisfied simultaneously for the
record to be selected.

Ron
 

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