oh man. are you kidding? there's actually a dateadd function. i was sucessfully incrementing the time by adding #12:30:00 AM# to it, but i couldnt figure out the date.
also- thanks for the tips, i'll look into them and maybe another control. (one with an onclick event would be good).
mike g
"Tony Toews" <ttoews[ at ]telusplanet.net> wrote in message news:f7jf025mj4moin6qu6v16jkpsn7pdgeqmn[ at ]4ax.com...
[Quoted Text] > "mikeslaptop" <me[ at ]here.com> wrote: > >>I am using the ms calendar control. >>I can read the selected date from it, and I want to add a day to the value >>I >>just read in a way that allows access to automatically change the value I >>captured into the next month or year as necessary. >> >>ie// i would read the date of march 31, 2006 x = calendar1.value >>i add a day to the variable of type date, --somehow--- x = x +1 day >>then the field returns april 01, 2006 > > See DateAdd in the VBA help. > > Tony > -- > Tony Toews, Microsoft Access MVP > Please respond only in the newsgroups so that others can > read the entire thread of messages. > Microsoft Access Links, Hints, Tips & Accounting Systems at > http://www.granite.ab.ca/accsmstr.htm
|