Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Weird (0x80004005)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ngaisteve1
Junior Member

Malaysia
241 Posts

Posted - 06 August 2003 :  05:04:23  Show Profile  Send ngaisteve1 an ICQ Message
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
Query-based update failed because the row to update could not be found.
/inventory_system/issue_requisition_issue_selected.asp, line 40

I narrow down the problem and it's a bit weird. When comment this line of code below, it works.

rs_issue("date_issued") = DatePart("YYYY", Date) & "/" & Right("0" & DatePart("M", Date),2) & "/" & Right("0" & DatePart("D", Date),2)

But, the weird thing is I have another file which just exactly the same line of code. This line of code intend to create a transaction log file.

All help really appreciated.

gelliott
Junior Member

USA
268 Posts

Posted - 06 August 2003 :  12:30:26  Show Profile
Your DatePart functions look correct to me - could be a data type mismatch problem. You are returning a text string to rs_issued("date_issued") - did you mean to return a date datatype? Like this:

rs_issue("date_issued") = DateValue(DatePart("YYYY", Date) & "/" & Right("0" & DatePart("M", Date),2) & "/" & Right("0" & DatePart("D", Date),2))

Also, perhaps your system date format settings prevent text date strings from recognizing dates in a YYYY/M/D format, although I think this is less likely. To simply rule it out, you could try:

rs_issue("date_issued") = Right("0" & DatePart("M", Date),2) & "/" & Right("0" & DatePart("D", Date),2) & "/" & DatePart("YYYY", Date)

* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized.
Go to Top of Page

ngaisteve1
Junior Member

Malaysia
241 Posts

Posted - 06 August 2003 :  22:28:30  Show Profile  Send ngaisteve1 an ICQ Message
Still can't. Same error.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07