telemorgan
MIS
I have an input box where a user enters a number. I then want that variable to be put into the dtmOld variable but I keep messing up the syntax. Can someone help? I've tried mutiple combinations. This is one of them.
daysold = InputBox ("What is the number of days you want the script to look back?")
dtmOld = "DateAdd("d", -"& daysold &" Now)"
Wscript.echo dtmold
I don't think the quotes are correct because everytime I put them there I get an expected end of statement.
Thanks in advance for you help.
daysold = InputBox ("What is the number of days you want the script to look back?")
dtmOld = "DateAdd("d", -"& daysold &" Now)"
Wscript.echo dtmold
I don't think the quotes are correct because everytime I put them there I get an expected end of statement.
Thanks in advance for you help.