If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > microsoft oledb error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-07-04, 11:34
genocide7 genocide7 is offline
Registered User
 
Join Date: Feb 2004
Posts: 6
Unhappy microsoft oledb error

good day,

i am having a problem where everytime i submitted the form, it will prompt this error :

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
/kiosk/discount.asp, line 115


and line 115 error is

If (Not MM_abortEdit) Then
' execute the insert
Set MM_editCmd = Server.CreateObject("ADODB.Command")
MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute <---this is line 115
MM_editCmd.ActiveConnection.Close

i'm using dreamweaver (aspvb script page) and access..and have a little knowledge on sql,asp or whatsoever..please help me..my dateline is in 1 month from now...please please please!!

thank you very much!
Reply With Quote
  #2 (permalink)  
Old 02-08-04, 00:33
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
MM_editCmd.CommandType = adCmdText
Reply With Quote
  #3 (permalink)  
Old 02-08-04, 06:32
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
What is mm_editquery ?
__________________
If you do not have SQL Server Books Online (BOL) installed - please do so. The majority of questions asked in the SQL Server forum could be eliminated if people had access to bol. BOL
Reply With Quote
  #4 (permalink)  
Old 02-08-04, 10:04
genocide7 genocide7 is offline
Registered User
 
Join Date: Feb 2004
Posts: 6
i'm not sure what it is because i'm using dreamweaver mx..every script is ready added on..that is why im having the problem to manipulate the asp script..

i changed it but the same error occured.. can u give me any alternative way to connect my access and dreamweaver?
Reply With Quote
  #5 (permalink)  
Old 02-08-04, 15:50
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
From my other post to you, you can add response.write in your asp page (not executing the sql) and display the mm_editquery.
__________________
If you do not have SQL Server Books Online (BOL) installed - please do so. The majority of questions asked in the SQL Server forum could be eliminated if people had access to bol. BOL
Reply With Quote
  #6 (permalink)  
Old 02-08-04, 19:46
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
Quote:
Originally posted by genocide7
i'm not sure what it is because i'm using dreamweaver mx..every script is ready added on..that is why im having the problem to manipulate the asp script..

i changed it but the same error occured.. can u give me any alternative way to connect my access and dreamweaver?
You need to add the following code

MM_editCmd.CommandType = adCmdText

before the code of the execution:

MM_editCmd.Execute

Note that you need to include the file adovbs or use

MM_editCmd.CommandType = &H0001
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On