U umair434 Registered User. Local time Today, 14:03 Joined Jul 8, 2011 Messages 186 Oct 5, 2011 #21 vbaInet said: Try >= and <= Also, try converting to Integer on all three sides. Click to expand... HAVING (((CInt(DatePart("ww",[dte],7,1)))>=CInt([forms]![filter]![weekfrom]) And (CInt(DatePart("ww",[dte],7,1)))<=CInt([forms]![filter]![weekto]))); this worked! thank you )
vbaInet said: Try >= and <= Also, try converting to Integer on all three sides. Click to expand... HAVING (((CInt(DatePart("ww",[dte],7,1)))>=CInt([forms]![filter]![weekfrom]) And (CInt(DatePart("ww",[dte],7,1)))<=CInt([forms]![filter]![weekto]))); this worked! thank you )
V vbaInet AWF VIP Local time Today, 22:03 Joined Jan 22, 2010 Messages 26,328 Oct 5, 2011 #22 Good job! But instead of CInt() use Val(). It will throw an error if it enounters Null, but Val() can handle Null.
Good job! But instead of CInt() use Val(). It will throw an error if it enounters Null, but Val() can handle Null.
U umair434 Registered User. Local time Today, 14:03 Joined Jul 8, 2011 Messages 186 Oct 5, 2011 #23 got it! thanks again. I cannot believe how much I have learnt in 3 months solely because of you guys and this forum. Cheers
got it! thanks again. I cannot believe how much I have learnt in 3 months solely because of you guys and this forum. Cheers
V vbaInet AWF VIP Local time Today, 22:03 Joined Jan 22, 2010 Messages 26,328 Oct 5, 2011 #24 Very soon you will become an expert and I will be seeking your advice Happy developing!
U umair434 Registered User. Local time Today, 14:03 Joined Jul 8, 2011 Messages 186 Oct 5, 2011 #25 I hope soo too would lovee to help others!