digiman1134
Programmer
My problem is that I am creating a web page that should query a MSSQL database table, and then after querying that table would take only one of the columns and put it into a drop down list form so that it could be chosen and plugged into a second script where it would be used to generate a report based on the criteria chosen
this is what I have so far, any ideas of where I should go from here?
this is what I have so far, any ideas of where I should go from here?
Code:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<script type= "text/vbscript">
DIM MMS
DIM MMS1
DIM MMS2
Function GetReportButton_onclick()
SET MMS = CreateObject("ADODB.Connection")
MMS.ConnectionString = "Provider=MSDASQL.1;Password=reports;Persist Security Info=True;User ID=reports;Data Source=Aberdeen Live Database;Extended Properties=DSN=Aberdeen Live Database;Description=Aberdeen Live Protean Database;UID=reports;APP=Microsoft Development Environment;WSID=IGNITION;DATABASE=ot30;User Id=reports;PASSWORD=reports', 'SELECT ResourceUK FROM dbo.fdBasResc WHERE (ResourceUK LIKE \'bt%\') ORDER BY ResourceUK';"
MMS.open
SET MMS2 = Createobject("ADODB.command")
SET MMS2.ActiveConnection = MMS
SET MMS2.commandText = "SELECT FROM Products WHERE all"
MMS2.execute
Set MMS1 = CreateObject("ADODB.RECORDSET")
MMS1.Open "ResourceUK", MMS
End Function
</script>
<input LANGUAGE="text/vbscript" onclick="id=GetReportButton" name= "GetReportButton" type= "button" value=" Get Report " onclick= "return GetReportButton_onclick()" tabIndex=2 style="HEIGHT: 41px; WIDTH: 128px">
</body>
</html>