<%
' Open the Inventory Database
Dim accessdb, cn, rs, sql
accessdb="inventory"
cn="driver={Microsoft Access Driver (*.mdb)};"
cn=cn & "dbq=" & server.mappath(accessdb)
sql = "SELECT * FROM Inventory"
Function CheckFileExists(sFileName)
Dim FileSystemObject, Mappath_FileName
Set FileSystemObject = Server.CreateObject("Scripting.FileSystemObject")
Mappath_FileName = Server.MapPath(sFileName)
If (FileSystemObject.FileExists(Mappath_FileName)) Then
CheckFileExists = True
Else
CheckFileExists = False
End If
Set FileSystemObject = Nothing
End Function
%>
Truck's , Van's & SUV's
Make/Model
& Details (Photo) Click on link below
Year
Photo
& Details
Stock
#
<%
' Open database
set rs = server.createobject("ADODB.Recordset")
rs.Open sql, cn
' Loop through database and look for specific items
Do While Not rs.EOF
If rs.Fields("Type").Value = "SUV" OR rs.Fields("Type").Value = "Van" then
If rs.Fields("From").Value = "D" then
%>
<%
End If
End If
' Move to next record
rs.MoveNext
' Continue Loop
Loop
' Close our recordset and connection and dispose of the objects
rs.Close
Set rs = Nothing
%>
<%
End If
End If
' Move to next record
rs.MoveNext
' Continue Loop
Loop
' Close our recordset and connection and dispose of the objects
rs.Close
Set rs = Nothing
%>
Heffle
Motor Company
993 HEDGESVILLE RD
Martinsburg, WV 25402
Phone: (304) 267-7172, Fax: (304) 267-9522