Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 16th, 2003, 05:14 PM
sanj sanj is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 98 sanj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 18 m 40 sec
Reputation Power: 6
Access error 0x80040E14

Hi,

I'm tearing my hair out I have a ASP that inserts the values into a database, but upon submitting I get this error:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Number of query values and destination fields are not the same.

<%
' *** Insert Record: set variables

If (CStr(Request("MM_insert")) = "form1") Then

MM_editConnection = MM_login_STRING
MM_editTable = "quotes"
MM_editRedirectUrl = "confirm.asp"
MM_fieldsStr = "nopp|value|opp|value|outlets|value|cableqty|value|buildtype|value|workinghours|value|cabqty|value|no pp|value|des1|value|cost1|value|des2|value|cost2|value|des3|value|cost3|value|des4|value|cost4|value |des5|value|cost5|value|des6|value|cost6|value|des7|value|cost7|value|des8|value|cost8|value|matsub| value|des9|value|cost9|value|des10|value|cost10|value|des11|value|cost11|value|des12|value|cost12|va lue|des13|value|cost13|value|des14|value|cost14|value|des15|value|cost15|value|labsub|value|mancost| value|username|value|totcost|value"
MM_columnsStr = "nopp|none,none,NULL|opp|none,none,NULL|outlets|none,none,NULL|cableqty|none,none,NULL|buildtype|',no ne,''|workinghours|',none,''|cabqty|none,none,NULL|nopp|none,none,NULL|des1|',none,''|cost1|none,non e,NULL|des2|',none,''|cost2|none,none,NULL|des3|',none,''|cost3|none,none,NULL|des4|',none,''|cost4| none,none,NULL|des5|',none,''|cost5|none,none,NULL|des6|',none,''|cost6|none,none,NULL|des7|',none,' '|cost7|none,none,NULL|des8|',none,''|cost8|none,none,NULL|matsub|none,none,NULL|des9|',none,''|cost 9|none,none,NULL|des10|',none,''|cost10|none,none,NULL|des11|',none,''|cost11|none,none,NULL|des12|' ,none,''|cost12|none,none,NULL|des13|',none,''|cost13|none,none,NULL|des14|',none,''|cost14|none,non e,NULL|des15|',none,''|cost15|none,none,NULL|labsub|none,none,NULL|mancost|none,none,NULL|username|' ,none,''|totcost|none,none,NULL"

' create the MM_fields and MM_columns arrays
MM_fields = Split(MM_fieldsStr, "|")
MM_columns = Split(MM_columnsStr, "|")

' set the form values
For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
Next

' append the query string to the redirect URL
If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
Else
MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
End If
End If

End If
%>

I checked my Access DB and all looks fine - can someone please help.

Regards,

Sanjay

Reply With Quote
  #2  
Old April 19th, 2003, 08:29 PM
customfittech customfittech is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: St. Louis, MO USA
Posts: 43 customfittech User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
What we really need is the confirm.asp page, as this page only builds the query string for THAT page to use. The split functions used in this page DO correctly split your strings into equal variant arrays of 86 items each.
__________________
- Chris of Custom Fit Technology
http://www.customfittech.com

Access to MySQL Conversion Tool,
Visual XSLT Conversion Tool

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Access error 0x80040E14


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway