diarratech
Technical User
Here is my problem! This is a query for a search in a database (databasephone book type ):
SELECT *
FROM CONTACT
WHERE name LIKE %varName% AND firstname LIKE %varFname% AND company LIKE %varComp%
ORDER BY name, firstname
Here is part of the dreamweaver code to take the information from the fiels. For instance:
<%
rsResultat__varName = "dfgdgdfg555qsdqsd65"
If (Request.Form("txtName") <> "") Then
rsResultat__varName = Request.Form("txtName")
End If
%>
.
.
.
ETC for the other text fields
The thing is that it does not give me any good answers. If there are data in the field name and first name and nothing in the company field, it won't give you any answers.
However, I believe that query works well within access.
The second problem is that most of the time i have a connection error too:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
on that connection
rsResultat_cmd.ActiveConnection = MM_ConSEC_STRING
SELECT *
FROM CONTACT
WHERE name LIKE %varName% AND firstname LIKE %varFname% AND company LIKE %varComp%
ORDER BY name, firstname
Here is part of the dreamweaver code to take the information from the fiels. For instance:
<%
rsResultat__varName = "dfgdgdfg555qsdqsd65"
If (Request.Form("txtName") <> "") Then
rsResultat__varName = Request.Form("txtName")
End If
%>
.
.
.
ETC for the other text fields
The thing is that it does not give me any good answers. If there are data in the field name and first name and nothing in the company field, it won't give you any answers.
However, I believe that query works well within access.
The second problem is that most of the time i have a connection error too:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
on that connection
rsResultat_cmd.ActiveConnection = MM_ConSEC_STRING