Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I Populate the checkboxes on my second Form with the exact same

Status
Not open for further replies.

dpcaerob

Technical User
Sep 28, 2001
1
GB
There are 2 sets of Checkboxes on this form, I want the second set of checkboxes to be auto filled to reflect what is in the Access databse.
<Body onLoad=&quot;setfocus()&quot; bgcolor=&quot;#FFFFFF&quot;>

<%
dim first
dim last
dim first1
dim last1
dim dept
dim branch
dim signoff
dim GBS
dim VM
dim CYGNA
dim CAVIEW
dim VPS
dim CLAIMS
dim CUMULUS
dim GMX
dim SIERRA
dim ST400
dim TRADER2
dim ABACIS
dim BAMTRAC
dim Comments


first=Request.Form(&quot;first&quot;)
last=Request.Form(&quot;last&quot;)
first1=Request.Form(&quot;first1&quot;)
last1=Request.Form(&quot;last1&quot;)
dept=Request.Form(&quot;dept&quot;)
branch=Request.Form(&quot;branch&quot;)
signoff=Request.Form(&quot;signoff&quot;)
GBS=Request.Form(&quot;GBS&quot;)
VM=Request.Form(&quot;VM&quot;)
CYGNA=Request.Form(&quot;CYGNA&quot;)
CAVIEW=Request.Form(&quot;CAVIEW&quot;)
VPS=Request.Form(&quot;VPS&quot;)
CLAIMS=Request.Form(&quot;CLAIMS&quot;)
CUMULUS=Request.Form(&quot;CUMULUS&quot;)
GMX=Request.Form(&quot;GMX&quot;)
SIERRA=Request.Form(&quot;SIERRA&quot;)
ST400=Request.Form(&quot;ST400&quot;)
TRADER2=Request.Form(&quot;TRADER2&quot;)
ABACIS=Request.Form(&quot;ABACIS&quot;)
BAMTRAC=Request.Form(&quot;BAMTRAC&quot;)
Comments=Request.Form(&quot;Comments&quot;)


If first <> &quot;&quot; then

Rec_Save
End If


Function Rec_Save()
Dim f
Dim conn
Dim RecSet
Dim Recordsaffected
Dim rs
Dim x
Dim BCIP
Dim adOpenStatic
Dim rsName


set conn=Server.CreateObject (&quot;ADODB.Connection&quot;)
Conn.Open &quot;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\inetpub\

conn.Execute &quot;INSERT INTO BCResults ([Call_Taken_By_First_Name],[Last_Name],[Callers_FName],[Callers_LName],[Department],[Branch],[Signoff_Time],[GBS],[VM],[CYGNA],[CAVIEW],[VPS],[CLAIMS],[CUMULUS],[GMX],[SIERRA],[ST400],[TRADER2],[ABACIS],[BAMTRAC],Comments) values ( '&quot; & _
first & &quot;','&quot; _
& last & &quot;','&quot; _
& first1 & &quot;','&quot; _
& last1 & &quot;','&quot; _
& dept & &quot;','&quot; _
& branch & &quot;','&quot; _
& signoff & &quot;','&quot; _
& GBS & &quot;','&quot; _
& VM & &quot;','&quot; _
& CYGNA & &quot;','&quot; _
& CAVIEW & &quot;','&quot; _
& VPS & &quot;','&quot; _
& CLAIMS & &quot;','&quot; _
& CUMULUS & &quot;','&quot; _
& GMX & &quot;','&quot; _
& SIERRA & &quot;','&quot; _
& ST400 & &quot;','&quot; _
& TRADER2 & &quot;','&quot; _
& ABACIS & &quot;','&quot; _
& BAMTRAC & &quot;','&quot; _
& Comments & &quot;')&quot;









set rs = Server.CreateObject(&quot;ADODB.recordset&quot;)
rs.Open &quot;SELECT * from BCResults ORDER BY Results_Id DESC&quot;, conn, adOpenStatic
%>
<%rs.MoveFirst

%>
<%
response.write(&quot;<center><h2><font color=red><U>Croydon INC Business Continuity Test</h2></center></U></font>&quot;)
%>
<%
response.write(&quot;<center><h2><font color=red><U>Thankyou for your response</h2></center></U></font>&quot;)
%>



<table border=&quot;1&quot; width=&quot;50%&quot; bgcolor=&quot;#fff5ee&quot; align=&quot;center&quot;>
<tr>
<% for each x in rs.fields

response.write(&quot;<th valign='center' bgcolor='#bOc4de'>&quot; & x.name & &quot;</th>&quot;)
%>
<td><bgcolor=&quot;#003399&quot;><center><%Response.Write(x.value)%></center>

<tr>
<% next%>
</tr>


<TABLE bgcolor=&quot;#fff5ee&quot; align=&quot;center&quot;>
<TR>
<BR>
<BR>
<form>
<input type='button' value='Close this Window' onClick='window.close()'>
</form>
</TR>
</TABLE>

<%
rs.close
conn.close
response.end
End function
%>


<center><font color=Red><H2><U>INC Business Continuity</U></font></H2></center>

<FORM name=&quot;userform1&quot;

action=&quot;BC_Results_copy(1).asp&quot;
method=post>


<table height=&quot;487&quot;>


<tr>

<TD WIDTH=150 VALIGN=TOP ALIGN=&quot;CENTER&quot; BGCOLOR=&quot;#99FFFF&quot; height=&quot;483&quot;>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>

<applet code=&quot;fphover.class&quot; codebase=&quot;../&quot; width=&quot;150&quot; height=&quot;24&quot;>
<param name=&quot;hovercolor&quot; value=&quot;#0000FF&quot;>
<param name=&quot;textcolor&quot; value=&quot;#FFFFFF&quot;>
<param name=&quot;text&quot; value=&quot;Display Results&quot;>
<param name=&quot;color&quot; value=&quot;#FF0000&quot;>
<param name=&quot;effect&quot; value=&quot;glow&quot;>
<param name=&quot;url&quot; valuetype=&quot;ref&quot;
</applet>
<td valign=top width=629 height=&quot;483&quot;>
<table width=&quot;400&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>

<TR>

</td>
</tr>
</table>



<table valign=center width=&quot;632&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; height=&quot;482&quot;>
<tr>

<TD BGCOLOR=&quot;#99FFFF&quot; height=&quot;482&quot;>



<B>

<FONT FACE=&quot;arial,helvetica,sansserif&quot; SIZE=&quot;3&quot;>

<Font color=Red><U><center><H2>Branch Test Results.</center></H2></U></Font>
</font>

<Script>
var mydate = new Date()
var monthday = mydate.getDate()
var month = mydate.getMonth() + 1
var day = mydate.getDay()
var year = mydate.getYear()
document.write(&quot;<DIV ALIGN=right>&quot; + &quot;<BR>&quot;)
document.write(&quot;<U><font color = Red>Today's date is: </U></font>&quot; + monthday + &quot;-&quot; + month + &quot;-&quot; + year + &quot;</DIV>&quot; )
</Script>


<BR>
<BR>
<P>
<FONT FACE=&quot;arial,helvetica,sansserif&quot; SIZE=&quot;3&quot;><B>
Primary Contact:<INPUT TYPE=text SIZE=50 NAME=&quot;first&quot;)</B><BR>
Work:                    
<INPUT TYPE=text SIZE=20 Name=&quot;work1&quot; <BR>
Home:<INPUT TYPE=text SIZE=20 Name=&quot;home1&quot;><BR>
Mobile No:            <INPUT TYPE=text SIZE=20 Name=&quot;mobile1&quot; <BR>
Pager:<INPUT TYPE=text SIZE=20 Name=&quot;pager1&quot; <BR>
<P>
<FONT FACE=&quot;arial,helvetica,sansserif&quot; SIZE=&quot;3&quot;><B>
Secondary Contact:<INPUT TYPE=text SIZE=50 NAME=&quot;second&quot;</B><BR>
Work:                          
<INPUT TYPE=text SIZE=20 Name=&quot;work&quot; <BR>
Home:<INPUT TYPE=text SIZE=20 Name=&quot;home&quot;><BR>
Mobile No:                 
<INPUT TYPE=text SIZE=20 Name=&quot;mobile&quot; <BR>Pager: <INPUT TYPE=text SIZE=20 Name=&quot;pager&quot; <BR>
<P>
Department Name:       <INPUT TYPE=text SIZE=20 Name=&quot;dept&quot; onChange=&quot;dept2(userform1.dept)&quot;>
<P>
<BR>
<P>
<FONT FACE=&quot;arial,helvetica,sansserif&quot; SIZE=&quot;3&quot;><B>
Branch Signed off at::  <input type=&quot;text&quot; name=&quot;signoff&quot; size=&quot;20&quot; onKeyUp=&quot;TimeFormat(this,this.value,event,false)&quot; onChange=&quot;TimeFormat(this,this.value,event,true)&quot;></b></font>
<P>
<BR>
<B><U><font color = Red>Select Services Tested:</font></U></B><BR>
<TABLE width=&quot;500&quot; height=&quot;91&quot;>
<TR>
<TD width=&quot;129&quot; height=&quot;87&quot;><B>Mainframe</B><BR>
<INPUT TYPE = Checkbox NAME = &quot;GBS&quot; VALUE=&quot;GBS&quot;>GBS<BR>
<INPUT TYPE = Checkbox NAME = &quot;VM&quot; VALUE=&quot;VM&quot;>VM<BR>
<INPUT TYPE = Checkbox NAME = &quot;CYGNA&quot; VALUE=&quot;CYGNA&quot;>CYGNA<BR>
<INPUT TYPE = Checkbox NAME = &quot;CAVIEW&quot; VALUE=&quot;CAVIEW&quot;>CAVIEW<BR>
<INPUT TYPE = Checkbox NAME = &quot;VPS&quot; VALUE=&quot;VPS&quot;>VPS<BR>
<BR>
<BR>
</TD>
<TD width=&quot;234&quot; height=&quot;88&quot;><B>Non Mainframe Services</B><BR>
<INPUT TYPE = Checkbox NAME = &quot;CLAIMS&quot; VALUE=&quot;CLAIMS&quot;>CLAIMS<BR>
<INPUT TYPE = Checkbox NAME = &quot;CUMULUS&quot; VALUE=&quot;CUMULUS&quot;>CUMULUS<BR>
<INPUT TYPE = Checkbox NAME = &quot;GMX&quot; VALUE=&quot;GMX&quot;>GMX<BR>
<INPUT TYPE = Checkbox NAME = &quot;SIERRA&quot; VALUE=&quot;SIERRA&quot;>SIERRA<BR>
<INPUT TYPE = Checkbox NAME = &quot;ST400&quot; VALUE=&quot;ST400&quot;>ST400<BR>
<INPUT TYPE = Checkbox NAME = &quot;TRADER2&quot; VALUE=&quot;TRADER2&quot;>TRADER2<BR>
<BR>
</TD>
<TD width=&quot;153&quot; height=&quot;87&quot;><B>US Connectivity</B><BR>
<INPUT TYPE = Checkbox NAME = &quot;ABACIS&quot; VALUE=&quot;ABACIS&quot;>ABACIS<BR>
<INPUT TYPE = Checkbox NAME = &quot;BAMTRAC&quot; VALUE=&quot;BAMTRAC&quot;>BAMTRAC<BR><BR>
<BR>
<BR>
<BR>
<BR>
</TABLE>
<B><U><font color = Red>Services previously advised that were to be tested:</font></U></B><BR>

<TABLE width=&quot;500&quot; height=&quot;91&quot;>
<TR>
<TD width=&quot;129&quot; height=&quot;87&quot;><B>Mainframe</B><BR>
<INPUT TYPE = Checkbox NAME = &quot;GBS&quot; VALUE=&quot;GBS&quot;>GBS<BR>
<INPUT TYPE = Checkbox NAME = &quot;VM&quot; VALUE=&quot;VM&quot;>VM<BR>
<INPUT TYPE = Checkbox NAME = &quot;CYGNA&quot; VALUE=&quot;CYGNA&quot;>CYGNA<BR>
<INPUT TYPE = Checkbox NAME = &quot;CAVIEW&quot; VALUE=&quot;CAVIEW&quot;>CAVIEW<BR>
<INPUT TYPE = Checkbox NAME = &quot;VPS&quot; VALUE=&quot;VPS&quot;>VPS<BR>
<BR>
<BR>
</TD>
<TD width=&quot;234&quot; height=&quot;88&quot;><B>Non Mainframe Services</B><BR>
<INPUT TYPE = Checkbox NAME = &quot;CLAIMS&quot; VALUE=&quot;CLAIMS&quot;>CLAIMS<BR>
<INPUT TYPE = Checkbox NAME = &quot;CUMULUS&quot; VALUE=&quot;CUMULUS&quot;>CUMULUS<BR>
<INPUT TYPE = Checkbox NAME = &quot;GMX&quot; VALUE=&quot;GMX&quot;>GMX<BR>
<INPUT TYPE = Checkbox NAME = &quot;SIERRA&quot; VALUE=&quot;SIERRA&quot;>SIERRA<BR>
<INPUT TYPE = Checkbox NAME = &quot;ST400&quot; VALUE=&quot;ST400&quot;>ST400<BR>
<INPUT TYPE = Checkbox NAME = &quot;TRADER2&quot; VALUE=&quot;TRADER2&quot;>TRADER2<BR>
<BR>
</TD>
<TD width=&quot;153&quot; height=&quot;87&quot;><B>US Connectivity</B><BR>
<INPUT TYPE = Checkbox NAME = &quot;ABACIS&quot; VALUE=&quot;ABACIS&quot;>ABACIS<BR>
<INPUT TYPE = Checkbox NAME = &quot;BAMTRAC&quot; VALUE=&quot;BAMTRAC&quot;>BAMTRAC<BR><BR>
<BR>
<BR>
<BR>
<BR>
</TABLE>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top