Wrox Programmer Forums
|
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP 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 June 17th, 2005, 11:59 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default select

Can anybody fullfill this sentence for me. I mean to put in the right number of ' and "

objrs2.Open "Select * from idtab where antkuberid <= '" request.form("kube")'", loginbase, adlockreadonly, adcmdtable

It should also have antkuberid > 0 in it

Thanks!

__________________
Internet has become favorable with that tool...thank you Tim Berners-Lee!
 
Old June 17th, 2005, 06:56 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Is this what you mean?
Code:
objrs2.Open "Select * from idtab where antkuberid <= " & request.form("kube"), loginbase, adlockreadonly, adcmdtable
Hope that helps.

_________________________
- Vijay G
Strive for Perfection
 
Old June 18th, 2005, 09:34 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, probably. I have not yet tried it in the browser, but my problem was that I got a error-message that told me to end the querry in a proper way. In other words; get the number of the ' and the " right. I do not anderstand the use of ' and " !!

In addition I also want to incorporate the condition antkuber > 0 into the querry.



Thank you for your attention.

 
Old June 18th, 2005, 06:32 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Code:
objrs2.Open "Select * from idtab where antkuber > 0 and antkuberid <= " & request.form("kube"), loginbase, adlockreadonly, adcmdtable
Hope this is what you wanted. But I would suggest you to validate the value of "KUBE" using ASP, so that when you send it across for execution in SQL statement, you will know for sure that the value is > 0 and in that case you don't have to use the "antkuber > 0" condition there.

Hope that helps.
Cheers


_________________________
- Vijay G
Strive for Perfection
 
Old April 28th, 2006, 09:07 AM
Friend of Wrox
 
Join Date: May 2005
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

... thank you for responding! I did forget to say this. It is never too late!

Med vennlig hilsen
grstad






Similar Threads
Thread Thread Starter Forum Replies Last Post
Select row in GridView WITHOUT using Select button rao965 ASP.NET 2.0 Professional 1 February 15th, 2008 10:44 AM
Select from another select statement to a repeater simsen ASP.NET 2.0 Professional 0 May 2nd, 2007 04:34 PM
Fill select box and select recordset value markd Classic ASP Databases 1 February 20th, 2006 06:41 PM
select="node1", select="node2"... Baldo XSLT 7 March 12th, 2004 10:38 AM
Select Within A Select Problem vinyl-junkie Classic ASP Databases 6 June 7th, 2003 04:31 PM





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