Sorry about the re-post all.  DateContacted is a date field in 
Access.  The error being returned is "error '80020009'".


Here is the original post again:

I've got an error in the date portion of the line below I can't
figure out. To protect from spam, we have a contact form that we
only want to allow submissions to go through if a record does not
exist for the user or if the date in the DateContacted field is more
than 90 days ago.

Anyone know the fix?

IF objRS.EOF OR objRS("DateContacted") < DateAdd ("d", -90, Date)
THEN

Response.Write "Your submission has been sent."

Thanks,
PW




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to