Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - SQL HELP - SELECT STATEMENT
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SQL HELP - SELECT STATEMENT

 Post Reply Post Reply Page  <1 345
Author
Mikeap View Drop Down
Newbie
Newbie


Joined: 12 March 2003
Location: United States
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikeap Quote  Post ReplyReply Direct Link To This Post Posted: 26 August 2003 at 1:27pm

How about ....?

arrRound = rsRound1.GetRows

strRound1 = (Cstr(arrRound1(3,0))

Then later on <% Response.Write(strRound1) %>

Is that the proper logic?

Back to Top
Mikeap View Drop Down
Newbie
Newbie


Joined: 12 March 2003
Location: United States
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikeap Quote  Post ReplyReply Direct Link To This Post Posted: 26 August 2003 at 1:30pm

Then you could do

if strRound1 = "" then
strRound1 = "None"
end if

Back to Top
b_bonnett View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Location: New Zealand
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote b_bonnett Quote  Post ReplyReply Direct Link To This Post Posted: 26 August 2003 at 5:56pm
Originally posted by Mikeap Mikeap wrote:

How about ....?

arrRound = rsRound1.GetRows

strRound1 = (Cstr(arrRound1(3,0))

Then later on <% Response.Write(strRound1) %>

Is that the proper logic?

Sorta, but if there is no rows, you'll get an error with GetRows.

Try:

blnRound1 = False
If Not rsRound1.EOF Then
     arrRound1 = rsRound1.GetRows
     blnRound1 = True
End If

If blnRound1 Then
     strRound1 = arrRound1(3,0)
Else
     strRound1 = "None"
End If

Blair

Webmaster, The Plane Gallery
Greetings From Christchurch
Back to Top
Mikeap View Drop Down
Newbie
Newbie


Joined: 12 March 2003
Location: United States
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikeap Quote  Post ReplyReply Direct Link To This Post Posted: 26 August 2003 at 7:42pm

I got it working ... I could not get it to loop or do a counter either ... just would not work.

So I manually assigned array values to variables and did it that way.

It's setup so even if the recordset is empty that it will just show none.

Back to Top
 Post Reply Post Reply Page  <1 345

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.