Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 12th, 2004, 11:53 AM
gibson1501 gibson1501 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 2 gibson1501 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
eof form

Hellow

Well i made a form with asp with an rs.eof from an acces database. Now i have a list and a user must add in a textfield in a form how many parts he want to buy. But now he must check if there is something in the field (txtaantal). But i don't know how to say do while nog eof form or something like that. Then name of my form is: "form". This part is clientside. So i need the code to check to the end of the form.

<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
Dim intgetal2

Sub cmdOpslaan_onclick
do while not form= ""
intgetal2=form.txtaantal.value
if intgetal2>0 then
open("boeking3.asp")
end if

Loop
'window.opener=null
'window.close()
End Sub

-->
</SCRIPT>

Reply With Quote
  #2  
Old December 24th, 2004, 03:49 PM
mwalts's Avatar
mwalts mwalts is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Victoria, BC Canada
Posts: 482 mwalts User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 30 sec
Reputation Power: 5
Seems like your on the wrong track... have you ever done any ASP before?

Why exactly are you trying to loop there?

Shouldn't the logic be more like

If Not IsNull(txtaantal.Value) Then
If Not txtaantal.Value = "" Then
open("boeking3.asp")
End If
End If

you might want to try posting this again (with more information) on the ASP section of the forums

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > eof form


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT