Hi All,
Well, my first try at setting up a form for adding multiple records has tripped me up at the starting line.
I'd appreciate some guidance here as I have never attempted this sort of thing before and am flying blind.
I went to the FAQ on manipulating data and have tried to modify the code to suit what I want but I've obviously done something wrong.
The scenario
I have groups of people who meet on a regular basis. The leader of each group needs to make a report online about the meeting and who attended. The first step was easy enough, a single form with some detail and it gets submitted to a database, no problems. In this process I have a session variable filled to ID the group
Once this step is completed, the form sends the leader to his list of members with a selection from a combo box (yes , No) as to whether they attended the meeting or not. The members are added in a different area which works fine.
When the leader of the group finished the entries of who attended the meeting and who did not, I wanted then to submit the form where the records from the form are all added to an attendance table. This data I can use in a number of ways.
All of the records will be entered regardless of the members attendance(so I can draw different reports).
Where I'm Stuck
Well, The page displaying the records of members came up with the first error(and I'm it will not be the only one)and it was in the generation of the recordset right at the start of the code. Here is the section of ASP code that is causing the error. and I am completely lost with it any help would be greatly appreciated to get me learning and understanding the concept of editing multiple records.
AS I said earlier, I'm using the code described in the FAQ faq333-4502 by Tarwn.
Remember this is just the start. I'm sure We'll be progressing through this page over the next week or so.
Thanks in advance
Dean
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
Well, my first try at setting up a form for adding multiple records has tripped me up at the starting line.
I'd appreciate some guidance here as I have never attempted this sort of thing before and am flying blind.
I went to the FAQ on manipulating data and have tried to modify the code to suit what I want but I've obviously done something wrong.
The scenario
I have groups of people who meet on a regular basis. The leader of each group needs to make a report online about the meeting and who attended. The first step was easy enough, a single form with some detail and it gets submitted to a database, no problems. In this process I have a session variable filled to ID the group
Once this step is completed, the form sends the leader to his list of members with a selection from a combo box (yes , No) as to whether they attended the meeting or not. The members are added in a different area which works fine.
When the leader of the group finished the entries of who attended the meeting and who did not, I wanted then to submit the form where the records from the form are all added to an attendance table. This data I can use in a number of ways.
All of the records will be entered regardless of the members attendance(so I can draw different reports).
Where I'm Stuck
Well, The page displaying the records of members came up with the first error(and I'm it will not be the only one)and it was in the generation of the recordset right at the start of the code. Here is the section of ASP code that is causing the error. and I am completely lost with it any help would be greatly appreciated to get me learning and understanding the concept of editing multiple records.
Code:
<%
Option Explicit
'Dim some variables
Dim conn, conn_str, sql_users, rs_users
conn_str = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source = C:\Inetpub\vhosts\calvaryaog.org.au\httpdocs\database\knect.mdb"
'setup the connection
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open(conn_str)
'make our SQL Statement
sql_users = "SELECT * FROM KnectMbrTBL WHERE (mbr_GroupID = (Session('GpID')) ORDERBY mbr_Surname;"
'pull in the data
Set rs_users = conn.Execute(sql_users)
%>
Remember this is just the start. I'm sure We'll be progressing through this page over the next week or so.
Thanks in advance
Dean
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."