DateAdd() won't work...

Results 1 to 2 of 2

Thread: DateAdd() won't work...

  1. #1
    Join Date
    Dec 1969

    Default DateAdd() won't work...

    Here&#039;s my code... <BR><BR>startdate = DateAdd("dd", remove, enddate)<BR><BR>remove is a variable taken from a database, it&#039;s a duration, varying between -1 and -5.<BR><BR>The reason it is negative is because I need to subtract the duration from the current date to find out when "it" began.<BR><BR>enddate is Date()<BR><BR>For some reason I am getting this error:<BR><BR>Invalid procedure call or argument: &#039;DateAdd&#039;<BR><BR>Anyone know why this is?<BR>

  2. #2
    Join Date
    Dec 1969

    Default Too many d's in DateAdd()

    startdate=DateAdd("d", remove, enddate)<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts