» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > ASP forums and Tips

ASP forums and Tips Talk about ASP Scripting. .net and Cold Fusion as well.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-30-2006, 12:58 PM
bowden bowden is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bowden is on a distinguished road
Default incorrect count field

Hi pals

I'm trying to get a discussion forum up and running but am getting a ODBC Drivers error '80040e10' [Microsoft][ODBC Microsoft Access Driver]COUNT field incorrect:

Code:
DIM insertStr
insertStr="INSERT INTO CATEGORIES (CAT_NAME, CAT_DESC, LAST_POST) VALUES("
insertStr=insertStr & "'" & request("CAT_NAME") & "',"
insertStr=insertStr & "'" & request("CAT_DESC") & "',"
insertStr=insertStr & "'" & DATE() & "')"

Set AddLinkCmd = Server.CreateObject("ADODB.Command")
AddLinkCmd.ActiveConnection = connStr
'here's where the error is
AddLinkCmd.CommandText = InsertStr
AddLinkCmd.Execute
AddLinkCmd.ActiveConnection.Close
end if

Is it a problem with the date() line?

What r ur views???? -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 07-30-2006, 01:00 PM
pinnacle pinnacle is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pinnacle is on a distinguished road
Default

Quote:
Originally Posted by bowden
Is it a problem with the date() line?
I think so

Code:
insertStr=insertStr & " getdate())"

that is you want the date/time of the current moment

cheers -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 07-30-2006, 01:02 PM
furious furious is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
furious is on a distinguished road
Default

If you are using ODBC maybe you need to use CURDATE() or NOW()?

Microsoft reference for date and time functions for ODBC

http://msdn.microsoft.com/library/d...l_functions.asp

Good day -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #4  
Old 07-30-2006, 01:04 PM
krissh krissh is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
krissh is on a distinguished road
Default

date fields in access need to be surrounded by # and not single quotes -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
error while changing the field name.... craily MySQL Forums 1 11-25-2006 05:12 AM
average of field !!! Kaylyne MySQL Forums 1 08-21-2006 06:58 AM
Greater than 300 on varchar field augustine MySQL Forums 1 08-19-2006 02:54 PM
How does Overture count relate to Google search count? robotec Google 6 08-15-2006 06:53 PM
counting stars in field boje MySQL Forums 1 07-30-2006 11:04 AM


All times are GMT. The time now is 01:50 AM.