Bonjour
je cree une page de recherche ds une table. L'utilisateur a trois champ.
il n'est pas oblige de remplir les trois (il peut en remplir un, deux ou trois) et je fais donc un SELECT ds ma table en fonction du contenu de mes champs :
voici mon code :
Or il y a apparemment un pb lorsque j'effectue ma requete, mais je n'arrive pas a voir lekel... :Error Type:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 <% dim kennung : kennung = request.Form("txtkennung") dim ltg : ltg = request.Form("txtltg") dim gateway : gateway= request.Form("txtgateway") if kennung<>"" or ltg<>"" or gateway<>"" then 'if kennung="" then kennung="%" end if 'if gateway="" then gateway="%" end if 'if ltg="" then ltg="%" end if Set Rs = Server.CreateObject("ADODB.Recordset") Rs.ActiveConnection = MM_LBS_STRING Rs.Source = "SELECT username FROM dbo.Gateway WHERE Username LIKE '"&kennung&"%' and ltg LIKE '"<g&"%' and gateway LIKE'"&gateway&"%'" Rs.CursorType = 0 Rs.CursorLocation = 2 Rs.LockType = 1 Rs.Open() end if %>
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/Siemensemu/suchen.asp, line 14 (la ligne 14 correspond a ma requete)
qn peut il m'aider?
merci d'avance
Partager