Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 4th, 2004, 07:12 AM
Authorized User
 
Join Date: Sep 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Greywacke
Default If err.number <> 0 probs in subroutine

okay... i have gone though the code, sifted as much as possible, and as a result the following code only writes the line numbers...

Code:
Response.Write "1723:"
With Response
    .Write "<TABLE WIDTH=100% BORDER=0 CELLSPACING=10 CELLPADDING=0>" & vbCrLf
    .Write "    <TR>" & vbCrLf
    .Write "        <TD CLASS=err><B>The transaction failed setting up while withdrawing " & gwRS("str_rpgname") & " chips from your account (error #" & err.number & ": " & err.description & " [" & err.source & ", line " & err.line & "]).  Please try again at a later time.</B></TD>" & vbCrLf
    .Write "    </TR>" & vbCrLf
    .Write "</TABLE>"
End With
Response.Write "1731:"
just writes 1723:1731 to the page, no details about the error that was raised in the first place...now why would the err object not be working as i have always used it?

Sincerely,
Pierre du Toit.
__________________
Sincerely,
Pierre "Greywacke" du Toit
[email protected]
don't worry about my 0 thankyou's either way, i would say thank you should you help, and i will gladly help others when this work rush is over.
 
Old March 4th, 2004, 07:34 AM
Authorized User
 
Join Date: Sep 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Greywacke
Default

hmmm... commented on error resume next, that with response bit ain't writing cause of gwRS not being instantiated. now i get the following error:

Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 4.

fine, i have seen expected 1 before, but never expected 4...

could anyone please try shed some light on the subject?

Sincerely,
Pierre du Toit.
 
Old March 4th, 2004, 07:35 AM
Authorized User
 
Join Date: Sep 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Greywacke
Default

nevermind, found prob, but now it gives Expected 2 o.0

will have to find out yet what the numbers mean in that expected N part of the error...

Sincerely,
Pierre du Toit.
 
Old March 4th, 2004, 09:29 AM
Registered User
 
Join Date: Mar 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In Access DB if field data type is text, data should be inclosed with in ' ' single quotes.

Expected.. N is number of fields not having '' around them.

 
Old March 4th, 2004, 04:13 PM
Authorized User
 
Join Date: Sep 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Greywacke
Default

sorry, but i have to strongly argue... works fine now, and the problems were incorrect field names, as one of the developers changed the mdb... i counted the incorrect field names, and yes, there were 4, 2 and 1 respectavely of them however before i fixed the sql string... i was comparing fields to fields, not fields to values...

Sincerely,
Pierre du Toit.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 8: <asp:image> inside <a> & ext.CSS (pg. 274) epc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 July 12th, 2008 04:37 AM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
<marquee><b>About CHAT App. in PHP4</b></marquee> Ramkrishna PHP How-To 1 September 11th, 2004 07:01 AM
<STRONG> vs <B> and <EM> vs <I> anshul HTML Code Clinic 12 September 1st, 2004 05:22 PM
a problem in book<<beginning asp.net using vb>> luoware ASP.NET 1.0 and 1.1 Basics 3 December 8th, 2003 09:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.