msrplus Posted September 17, 2009 Posted September 17, 2009 Current system date over the set date not workwhen less 10,09,2009 or 20,09,2009 over current system date then msg..... 'date = current system datedim startDate,endDatestartDate = CDate("10/09/" & Cstr(Year(TodayDate)))eDate = CDate("20/09/" & Cstr(Year(TodayDate)))if startDate < date or endDate > date thenmsgbox "10 day over plz update"elsemsgbox "welcome to start"end ifPlz any Solution or Solve problem Thanks
gunsmokingman Posted September 18, 2009 Posted September 18, 2009 'date = current system datedim startDate,endDatestartDate = CDate("10/09/" & Cstr(Year(TodayDate)))eDate = CDate("20/09/" & Cstr(Year(TodayDate)))if startDate < date or endDate > date thenmsgbox "10 day over plz update"elsemsgbox "welcome to start"end ifChange This eDate = CDate("20/09/" & Cstr(Year(TodayDate)))To ThisendDate = CDate("20/09/" & Cstr(Year(TodayDate)))Then try running your code
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now