Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Databases
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 January 12th, 2007, 02:46 PM
Authorized User
 
Join Date: Oct 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Any suggestions or help will be appreciated…ASAP!

Have problems with the recordset…if the value of tempPremium is more than > 10,000 than I get no results after this statement executes:

set rsDownPayment = applyFilterAndReloadRecordset(rsDownPayment,"min_p remium <=" & tempPremium & " and b80_userline = '" & objLogic.userline & "' and profile = '" & objLogic.profile & "'")

I was trying to debug the application using response.write statement but get no results if the values of tempPremium is more than 10,000 (values under 10,000 works fine).
Note: does the recordset has any limitations that might be doing this??
Any suggestions or help will be appreciated…ASAP!
Thanks a lot for yr time…


 
Old January 12th, 2007, 02:53 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It is probably code in your applyFilterAndReloadRecordset method.
What is the code in that method?
Are there any error messages?
Are you suppressing errors?
Also, are you using that comma in 10,000? It should be 10000.
An ADO recordset has no limitations that would cause this.




Woody Z
http://www.learntoprogramnow.com
 
Old January 12th, 2007, 04:17 PM
Authorized User
 
Join Date: Oct 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is the code for the applyFilterAndReloadRecordset method:

function applyFilterAndReloadRecordset(rs, filter)
    dim rsTemp
    set rsTemp = rs.clone

    rsTemp.Filter = filter

    dim zobj
    set zobj = server.CreateObject("ADODB.Stream")

    rsTemp.Save zobj, 0
    rsTemp.Close

    rsTemp.Open zobj

    set applyFilterAndReloadRecordset = rsTemp
end function

No there r no error messages & I am not trying to suppress the error messages.

(If Err.number <> 0 then
response.write ("Your error number is " & Err.number & "<br>")
response.write ("The error source is " & Err.source & "<br>")
response.write ("The error description is " & Err.description & "<br>")
End If)

But I see no error messages. Yes, the value is 10000 & not 10,000!
So what u think the problem could be??
Thanks


 
Old January 12th, 2007, 05:47 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is no obvious reason... so lets look for something that is not obvious.
What is the database? Oracle, Sql Server, Access, MySql, Informix, etc?
What is the datatype of the tempPremium field.
I assume it is numeric - so what are the constraints on it - scale, precision, size, etc - in the database table?

The main observation I can make at this time is that 9999 is four digits, and 10000 is five. So, can this make a difference? It's the only variation that jumps out.

What else...? I'll try to help, but it's tough in this environment.

Woody Z
http://www.learntoprogramnow.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
any suggestions? Acar BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 May 27th, 2008 07:19 AM
All suggestions are welcome! Wooger Other Programming Languages 0 September 24th, 2007 09:47 AM
I Need Some Suggestions??? [email protected] ASP.NET 2.0 Professional 0 November 8th, 2006 02:14 AM
Suggestions lagoonblue Visual C++ 0 June 13th, 2005 07:18 PM
Some suggestions richard.york Forum and Wrox.com Feedback 0 October 13th, 2003 01:45 AM





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