Hi,

I'm using a datetimepicker in a form and i have a textbox also. I need to list the days clicked separated by a "," in the textbox, however i have no idea how to code it.

ex. i used

dates_chosen.text = datetimepicker1.value.dayofweek.toString

but if i click on another date, then the date is changed in the textbox. I want to keep the date, use a comma (& ",") and paste the next date to click after the comma.

any help very much appreciated

Thank you
Luke

IF LEN(Datetimepicker1.value.dayofweek.toString)=0 THEN 
dates_chosen.text = datetimepicker1.value.dayofweek.toString
ELSE
dates_chosen.text = DATES_CHOSEN.TEXT +", " + datetimepicker1.value.dayofweek.toString
END IF

hi thanks for you help. it worked out fine for me :)

thanks
Luke