473,326 Members | 2,108 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

REGISTRATION FORM

I am trying to develop a Registration form for people to sign for my job
upcoming Holiday Party.
There will be 60 sitting tables, each sitting table can seat 10 people. What
I'm to do is to allow a registering person to select a table and register.
After the table fills up it will no longer accept registrations. Here is the
code that I have so far that will allow the people to see available names:

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.CursorLocation = 3 ' adUseClient
conn.Open(Server.Mappath("registration.mdb"))
sql="Select * FROM tblName WHERE tablenumber='1';"
Set rs = conn.Execute(sql)

If Not rs.EOF And rs.recordcount = -1 Then
rs.MoveLast
rs.MoveFirst
End If
If rs.RecordCount < 10 Then
Response.Write "There's room for " & (10 - rs.RecordCount) & " at the table."
Else
Response.Write "Table is full."
End If


do while not rs.EOF

Response.Write ("<p>")
Response.Write rs.Fields("fname").Value & " "
Response.write rs.Fields("lname").Value
Response.Write("<p>")
Response.Write rs.Fields("guest1fname").Value & " "
Response.Write rs.Fields("guest1lname").Value
Response.Write("<p>")
Response.Write rs.Fields("guest2fname").Value & " "
Response.Write rs.Fields("guest2lname").Value
Response.Write("<p>")
Response.Write rs.Fields("guest3fname").Value & " "
Response.Write rs.Fields("guest3lname").Value
Response.Write("<p>")

rs.MoveNext
Loop
rs.close
Set rs = Nothing
conn.close
Set conn = Nothing
%>

Nov 10 '06 #1
1 1358

"vabeach757" <u28919@uwewrote in message news:690f1b4b6a68b@uwe...
>I am trying to develop a Registration form for people to sign for my job
upcoming Holiday Party.
There will be 60 sitting tables, each sitting table can seat 10 people.
What
I'm to do is to allow a registering person to select a table and register.
After the table fills up it will no longer accept registrations. Here is
the
code that I have so far that will allow the people to see available names:

<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.CursorLocation = 3 ' adUseClient
conn.Open(Server.Mappath("registration.mdb"))
sql="Select * FROM tblName WHERE tablenumber='1';"
Set rs = conn.Execute(sql)

If Not rs.EOF And rs.recordcount = -1 Then
rs.MoveLast
rs.MoveFirst
End If
If rs.RecordCount < 10 Then
Response.Write "There's room for " & (10 - rs.RecordCount) & " at the
table."
Else
Response.Write "Table is full."
End If


do while not rs.EOF

Response.Write ("<p>")
Response.Write rs.Fields("fname").Value & " "
Response.write rs.Fields("lname").Value
Response.Write("<p>")
Response.Write rs.Fields("guest1fname").Value & " "
Response.Write rs.Fields("guest1lname").Value
Response.Write("<p>")
Response.Write rs.Fields("guest2fname").Value & " "
Response.Write rs.Fields("guest2lname").Value
Response.Write("<p>")
Response.Write rs.Fields("guest3fname").Value & " "
Response.Write rs.Fields("guest3lname").Value
Response.Write("<p>")

rs.MoveNext
Loop
rs.close
Set rs = Nothing
conn.close
Set conn = Nothing
%>
What's the question? What are you having difficulty with?

--
Mike Brind
Nov 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: karolina | last post by:
Hi, I am making a small registration form about cars in three steps. The first step is to fill in member data. After filled out the member data hit "next" and enter car information. Hit "next"...
1
by: JaNE | last post by:
Hello, I have made my cms... and is working, but have some, let me say "bugs"... And I don't know all reasons, please allow me slightly longer and most probably confusing post (that "confusing" is...
0
by: Marcel - IDUG Europe 2005 | last post by:
Dear DB2 user, My name is Marcel Lévy and I'm a member of the IDUG 2005 Europe Conference Planning Committee. ********************************************************************* Mark your...
0
by: Wayne Smith | last post by:
I've taken the following code from a developers web site which should allow a user to register and receive an email message with a link to activate their account, but when I click the link on my...
0
by: RHSFSS | last post by:
Hi, I have a Drag and Drop registration problem (See http://www.thescripts.com/forum/thread434707.html for similar problem post), can anyone out thereadvise on the best solution? I have a .NET 2.0 ...
0
by: Marcel - IDUG Europe 2006 | last post by:
Hi DB2 user, Register by 14 September and Save 226 Euro! Register by Thursday, 14 September and save 226 Euro on your full conference registration! Don't wait - make sure you take advantage of...
0
by: David Goodger | last post by:
I am pleased to announce that PyCon 2008 registration is now open! http://us.pycon.org/2008/registration/ Early-bird registration is open until February 20, so there's one month to register at...
5
by: silmana | last post by:
hello, i have this problem that i cannot bound the registration script to the login script, what i mean is that when i register, i cannot login in the login script although the information comes to...
3
by: satishknight | last post by:
Hi, Can some one tell me how to change the validation sequence for the code pasted below, actually what I want it when any one enters the wrong login information (already registered users) then it...
9
by: happyse27 | last post by:
Hi All, In perl script(item b below) where we check if html registration form are filled in properly without blank with the necessary fields, how to prompt users that the field are incomplete...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.