pietlinden@hotmail.com wrote:[color=blue]
> what data types is your "start date"? If it's text, then that *might*
> explain why the QBE is misinterpreting what you intend. If it's text,
> try replacing [start date] with cdate([start date]) and see if that
> fixes it.
>
> no need for VBA at all in this...
>[/color]
I need a rest from this... no I've just tried using Cdate and dateserial.
What I have noticed if I sort into order it only sorts by the day part
of date, i.e. 31/03/05 comes after 01/04/05 and 02/04/05 etc.
I also changed my start date to midlenght date format -this displays
28-Mar-05 but the queried dates show as 28/03/2005 so it looks like
they're strings an not date formats - even after using cdate.
My last attempt was this:
Rent Due: IIf([start date],IIf(Day([start
date])<Day(Date()),CDate(DateSerial(Year(Date()),Month( Date())+1,Day([start
date]))),CDate(DateSerial(Year(Date()),Month(Date()),Da y([start
date])))),"n/a")
I need to leave it alone right now, I been at it too long. Will try any
more ideas that are posted tomorrow, thanks for your help. May need to
try another approach to the problem
R.