after I have created a database, as followed Table products.mdb
I have the product category displaying fine and the search works fine also,
here is what I have, I want to include the search to perform a defined search, but don't know how to include other tables that are already existing in the products.mdb such as,
TblCountyID
ProvinceID
TblCityID
This is what I need to add below so that when we select Canada in a dropdown lost then selcting, a Province and then a City, So that after the search you are only retreiving the required fields. I can sure use some help on this.
Default.asp:
<!-- #INCLUDE FILE="adovbs.inc" -->
<%
' Get Current Category
cat = TRIM( Request( "cat" ) )
IF cat = "" THEN cat = "Home"
' Get Search Phrase
searchFor = TRIM( Request( "searchFor" ) )
' Get Current Category
cat = TRIM( Request( "cat" ) )
IF cat = "" THEN cat = "Home"
' Open Database Connection
Set Con = Server.CreateObject( "ADODB.Connection" )
Con.Open "accessDSN"
' Open Recordset with Static Cursor
Set RS = Server.CreateObject( "ADODB.Recordset" )
RS.CursorType = adOpenStatic
RS.ActiveConnection = Con
RS.Open "Select * FROM Products"
' Display Count of Products
Response.Write "Number of products: "
Response.Write RS.RecordCount
%>
I have the product category displaying fine and the search works fine also,
here is what I have, I want to include the search to perform a defined search, but don't know how to include other tables that are already existing in the products.mdb such as,
TblCountyID
ProvinceID
TblCityID
This is what I need to add below so that when we select Canada in a dropdown lost then selcting, a Province and then a City, So that after the search you are only retreiving the required fields. I can sure use some help on this.
Default.asp:
<!-- #INCLUDE FILE="adovbs.inc" -->
<%
' Get Current Category
cat = TRIM( Request( "cat" ) )
IF cat = "" THEN cat = "Home"
' Get Search Phrase
searchFor = TRIM( Request( "searchFor" ) )
' Get Current Category
cat = TRIM( Request( "cat" ) )
IF cat = "" THEN cat = "Home"
' Open Database Connection
Set Con = Server.CreateObject( "ADODB.Connection" )
Con.Open "accessDSN"
' Open Recordset with Static Cursor
Set RS = Server.CreateObject( "ADODB.Recordset" )
RS.CursorType = adOpenStatic
RS.ActiveConnection = Con
RS.Open "Select * FROM Products"
' Display Count of Products
Response.Write "Number of products: "
Response.Write RS.RecordCount
%>