Click to See Complete Forum and Search --> : CVDate() - Object Expected


0xC0000005
June 18th, 2009, 12:43 PM
I am working with a database via ASP & javascript running on IIS localhost. For some reason, this configuration does not recognize the CVDate() function. Even this simple code example throws an exception "Object Expected":

try
{
CVDate("19 June 2009");
}
catch(e)
{
Response.Write(e.message);
}

If I replace CVDate() with something like String() there is no problem. What do I have to do to get CVDate() to work?

davide++
June 22nd, 2009, 03:45 AM
Hi all.

First, CVDate is a function, so you must assign a value


x = CVDate("19 June 2009");


Then, I know it's a VBA function. Are you sure that it's supplied by the tools and languages you're using?