ACTP Requests Administration page
<%@ Language = "VBScript" %> <% Dim szDSN, szSQL, intFields, rst ' -- Specify the database to connect to via ODBC ' -- Use an existing data source name szDSN = "DSN=ACTP" ' -- OR ' -- You can also use a DSN-less connection by providing the driver and database ' szDSN = "Driver=Microsoft Access Driver (*.mdb);DBQ=C:\Data\MyDatabase.mdb" Set rst = Server.CreateObject("ADODB.Recordset") ' -- Supply a SQL statement to query by 'szSQL = "SELECT ID=ContactID, 'Download Date'=InitialContactDate, 'First Name'=FirstName, 'Last Name'=LastName, 'Company'=CompanyName FROM requests ORDER BY InitialContactDate" 'szSQL = "SELECT ContactID, InitialContactDate, FirstName, LastName, CompanyName FROM requests ORDER BY InitialContactDate" szSQL = "SELECT * FROM ShortRequest" ' -- Execute the query on the data source rst.Open szSQL, szDSN ' -- Draw a table Response.Write "" Response.Write rst.Fields(intFields).Name Response.Write " | " Next ' -- Now add a column for the "View" option Response.Write "View | " Response.Write "
" Response.Write rst.Fields(intFields).Value Response.Write " | " Next ' -- Now add a column for the "View" option Response.Write "View | " Response.Write "