Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Jmail error message
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Jmail error message

 Post Reply Post Reply
Author
dsonson23 View Drop Down
Newbie
Newbie
Avatar

Joined: 04 June 2005
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote dsonson23 Quote  Post ReplyReply Direct Link To This Post Topic: Jmail error message
    Posted: 04 June 2005 at 11:54pm
Hi there,
Can anybody help me to fix this problem?
I received this error message:
 
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
/auction/asp/bid.asp, line 3

Here is my code:

SQLstr="Select name, email from register where userID='"&bidername&"'"
            rs.Open SQLstr,conn,1,3
            SenderEmail  = "mail@auctionssolution.com"
            Subject   = "Bid Information"
            Recipient  = rs("email")
            Body = "Dear " & rs("username") _
                &nbs p;   & vbCRLF & "Thanks for placing your bid!" _
                &nbs p;   & vbCRLF & vbCRLF & "Your bid details:" _
                &nbs p;   & vbCRLF & "Product : " & Session("pme") _
                &nbs p;   & vbCRLF & "Your bid : $" & bidprice _
                &nbs p;   & vbCRLF & vbCRLF & "Good luck and remember to go back to the appropriate bid page, because someone may place a higher bid price than you!" _
                &nbs p;   & vbCRLF & vbCRLF & "See you online!" _
                &nbs p;   & vbCRLF & "mail" _
                &nbs p;   & vbCRLF & "mail@auctionssolution.com"
            Set JMail = Server.CreateObject("JMail.SMTPMail")
            JMail.ServerAddress = "mail.optonline.net"
            JMail.Sender = Senderemail
            JMail.Subject = Subject
            JMail.AddRecipient Recipient
            JMail.Body = Body
            JMail.Priority = 3
            JMail.Execute  '40
            rs.close

          SQLstr= "SELECT bidprice FROM biding WHERE itnumber="&proID
         SQLstr=SQLstr& " ORDER BY bidprice"           
          rs.Open SQLstr,conn,1,3
            if Not rs.EOF then         
                if count >= qty then   
                &nbs p;   rs.MoveLast
                &nbs p;   for i = 1 to qty
                &nbs p;       rs.MovePrevious
                &nbs p;       if Not rs.BOF then              &nbs p;  
                &nbs p;           current=rs("bidprice")                 &nbs p;                   &nbs p;                   &nbs p;          
                &nbs p;       end if
                &nbs p;       if rs.bof then exit for
                &nbs p;   next
                end if
            end if
            rs.close
   
        if count > qty then
            SQLstr="Select name, email from register where userID='"&lostuser&"'"
            rs.Open SQLstr,conn,1,3
            SenderEmail  = "mail@auctionssolution.com"
            Subject   = "Bid Information"
            Recipient  = rs("email")
            Body = "Dear " & rs("username") _
                &nbs p;   & vbCRLF & "You have been outbidded by another user: " _
                &nbs p;   & vbCRLF & "Product : " & Session("pme") _
                &nbs p;   & vbCRLF & "The Currenely Bid Price Is  : $" & Lowprice _
                &nbs p;   & vbCRLF & vbCRLF & "Good Luck On Your Auction Activity!" _
                &nbs p;   & vbCRLF & vbCRLF & "See you online!" _
&n

Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Post Options Post Options   Thanks (0) Thanks(0)   Quote ub3rl337ch3ch Quote  Post ReplyReply Direct Link To This Post Posted: 05 June 2005 at 6:42pm
check your spelling of the userID on line 2. If it is in fact biddername, not bidername, then the sql will be looking for something where userID='' and that makes no sense...
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.