06. august 2001 - 13:29Der er
15 kommentarer og 1 løsning
Count of Recordsets
I use the following sql strSQL = \"SELECT * FROM fspSearch WHERE\" strSQL = strSQL & \" (VNavn LIKE \'%\" & strKeyword & \"%\' and KNavn LIKE \'%\" & strKeyworda & \"%\' and VSocialPart LIKE \'%\" & strKeywordvsp &\"%\' and VArbTyp1 LIKE \'%\" & strVArbTyp1 &\"%\' and VArbTyp2 LIKE \'%\" & strVArbTyp2 &\"%\' and VArbTyp3 LIKE \'%\" & strVArbTyp3 &\"%\' and VArbTyp4 LIKE \'%\" & strVArbTyp4 &\"%\' and VArbTyp5 LIKE \'%\" & strVArbTyp5 &\"%\' and VArbTyp6 LIKE \'%\" & strVArbTyp6 &\"%\' and VArbTyp7 LIKE \'%\" & strVArbTyp7 &\"%\' and VArbTyp8 LIKE \'%\" & strVArbTyp8 &\"%\' and VArbTyp9 LIKE \'%\" & strVArbTyp9 &\"%\' and VArbTyp10 LIKE \'%\" & strVArbTyp10 &\"%\' and VArbTyp11 LIKE \'%\" & strVArbTyp11 &\"%\' and VArbTyp12 LIKE \'%\" & strVArbTyp12 &\"%\' and VArbTyp13 LIKE \'%\" & strVArbTyp13 &\"%\' and VJobOrd1 LIKE \'%\" & strVJobOrd1 &\"%\' and VJobOrd2 LIKE \'%\" & strVJobOrd2 &\"%\' and VJobOrd3 LIKE \'%\" & strVJobOrd3 &\"%\' and VJobOrd4 LIKE \'%\" & strVJobOrd4 &\"%\' and VJobOrd5 LIKE \'%\" & strVJobOrd5 &\"%\' and VJobOrd6 LIKE \'%\" & strVJobOrd6 &\"%\' and VJobOrd7 LIKE \'%\" & strVJobOrd7 &\"%\' and VJobOrd8 LIKE \'%\" & strVJobOrd8 &\"%\')\" Set rs = Con.Execute(strSQL)
Here how I thought the countSQL should be but recieve errors :(
countSQL = \"Select Count(ID) FROM fspSearch WHERE\" strSQL = strSQL & \" (VNavn LIKE \'%\" & strKeyword & \"%\' and KNavn LIKE \'%\" & strKeyworda & \"%\' and VSocialPart LIKE \'%\" & strKeywordvsp &\"%\' and VArbTyp1 LIKE \'%\" & strVArbTyp1 &\"%\' and VArbTyp2 LIKE \'%\" & strVArbTyp2 &\"%\' and VArbTyp3 LIKE \'%\" & strVArbTyp3 &\"%\' and VArbTyp4 LIKE \'%\" & strVArbTyp4 &\"%\' and VArbTyp5 LIKE \'%\" & strVArbTyp5 &\"%\' and VArbTyp6 LIKE \'%\" & strVArbTyp6 &\"%\' and VArbTyp7 LIKE \'%\" & strVArbTyp7 &\"%\' and VArbTyp8 LIKE \'%\" & strVArbTyp8 &\"%\' and VArbTyp9 LIKE \'%\" & strVArbTyp9 &\"%\' and VArbTyp10 LIKE \'%\" & strVArbTyp10 &\"%\' and VArbTyp11 LIKE \'%\" & strVArbTyp11 &\"%\' and VArbTyp12 LIKE \'%\" & strVArbTyp12 &\"%\' and VArbTyp13 LIKE \'%\" & strVArbTyp13 &\"%\' and VJobOrd1 LIKE \'%\" & strVJobOrd1 &\"%\' and VJobOrd2 LIKE \'%\" & strVJobOrd2 &\"%\' and VJobOrd3 LIKE \'%\" & strVJobOrd3 &\"%\' and VJobOrd4 LIKE \'%\" & strVJobOrd4 &\"%\' and VJobOrd5 LIKE \'%\" & strVJobOrd5 &\"%\' and VJobOrd6 LIKE \'%\" & strVJobOrd6 &\"%\' and VJobOrd7 LIKE \'%\" & strVJobOrd7 &\"%\' and VJobOrd8 LIKE \'%\" & strVJobOrd8 &\"%\')\"
RS2 = Con.Execute(countSQL)
here the error i get Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80040E14) [Microsoft][ODBC Microsoft Access Driver] Syntax error in WHERE clause. /WEE_guzzie/search_advanceret.asp, line 233
line 233 is the following RS2 = Con.Execute(countSQL)
countSQL = \"Select Count(ID) FROM fspSearch WHERE\" strSQL = strSQL & \" VNavn LIKE \'%\" & strKeyword & \"%\' and KNavn LIKE \'%\" & strKeyworda & \"%\' and VSocialPart LIKE \'%\" & strKeywordvsp &\"%\' and VArbTyp1 LIKE \'%\" & strVArbTyp1 &\"%\' and VArbTyp2 LIKE \'%\" & strVArbTyp2 &\"%\' and VArbTyp3 LIKE \'%\" & strVArbTyp3 &\"%\' and VArbTyp4 LIKE \'%\" & strVArbTyp4 &\"%\' and VArbTyp5 LIKE \'%\" & strVArbTyp5 &\"%\' and VArbTyp6 LIKE \'%\" & strVArbTyp6 &\"%\' and VArbTyp7 LIKE \'%\" & strVArbTyp7 &\"%\' and VArbTyp8 LIKE \'%\" & strVArbTyp8 &\"%\' and VArbTyp9 LIKE \'%\" & strVArbTyp9 &\"%\' and VArbTyp10 LIKE \'%\" & strVArbTyp10 &\"%\' and VArbTyp11 LIKE \'%\" & strVArbTyp11 &\"%\' and VArbTyp12 LIKE \'%\" & strVArbTyp12 &\"%\' and VArbTyp13 LIKE \'%\" & strVArbTyp13 &\"%\' and VJobOrd1 LIKE \'%\" & strVJobOrd1 &\"%\' and VJobOrd2 LIKE \'%\" & strVJobOrd2 &\"%\' and VJobOrd3 LIKE \'%\" & strVJobOrd3 &\"%\' and VJobOrd4 LIKE \'%\" & strVJobOrd4 &\"%\' and VJobOrd5 LIKE \'%\" & strVJobOrd5 &\"%\' and VJobOrd6 LIKE \'%\" & strVJobOrd6 &\"%\' and VJobOrd7 LIKE \'%\" & strVJobOrd7 &\"%\' and VJobOrd8 LIKE \'%\" & strVJobOrd8 &\"%\'\"
countSQL = \"Select Count(ID) AS Count FROM fspSearch WHERE\" strSQL = strSQL & \" (VNavn LIKE \'%\" & strKeyword & \"%\' and KNavn LIKE \'%\" & strKeyworda & \"%\' and VSocialPart LIKE \'%\" & strKeywordvsp &\"%\' and VArbTyp1 LIKE \'%\" & strVArbTyp1 &\"%\' and VArbTyp2 LIKE \'%\" & strVArbTyp2 &\"%\' and VArbTyp3 LIKE \'%\" & strVArbTyp3 &\"%\' and VArbTyp4 LIKE \'%\" & strVArbTyp4 &\"%\' and VArbTyp5 LIKE \'%\" & strVArbTyp5 &\"%\' and VArbTyp6 LIKE \'%\" & strVArbTyp6 &\"%\' and VArbTyp7 LIKE \'%\" & strVArbTyp7 &\"%\' and VArbTyp8 LIKE \'%\" & strVArbTyp8 &\"%\' and VArbTyp9 LIKE \'%\" & strVArbTyp9 &\"%\' and VArbTyp10 LIKE \'%\" & strVArbTyp10 &\"%\' and VArbTyp11 LIKE \'%\" & strVArbTyp11 &\"%\' and VArbTyp12 LIKE \'%\" & strVArbTyp12 &\"%\' and VArbTyp13 LIKE \'%\" & strVArbTyp13 &\"%\' and VJobOrd1 LIKE \'%\" & strVJobOrd1 &\"%\' and VJobOrd2 LIKE \'%\" & strVJobOrd2 &\"%\' and VJobOrd3 LIKE \'%\" & strVJobOrd3 &\"%\' and VJobOrd4 LIKE \'%\" & strVJobOrd4 &\"%\' and VJobOrd5 LIKE \'%\" & strVJobOrd5 &\"%\' and VJobOrd6 LIKE \'%\" & strVJobOrd6 &\"%\' and VJobOrd7 LIKE \'%\" & strVJobOrd7 &\"%\' and VJobOrd8 LIKE \'%\" & strVJobOrd8 &\"%\')\"
If Len(strKeyword) = 0 Then \' Response.Clear \' Response.Redirect(\"default.asp\") Else \' strKeyword = Replace(strKeyword,strKeyworda,strKeywordt) strKeyword = Replace(strKeyword,\"\",\"\") End If strSQL = \"SELECT * FROM fspSearch WHERE\" strSQL = strSQL & \" (VNavn LIKE \'%\" & strKeyword & \"%\' and KNavn LIKE \'%\" & strKeyworda & \"%\' and VSocialPart LIKE \'%\" & strKeywordvsp &\"%\' and VArbTyp1 LIKE \'%\" & strVArbTyp1 &\"%\' and VArbTyp2 LIKE \'%\" & strVArbTyp2 &\"%\' and VArbTyp3 LIKE \'%\" & strVArbTyp3 &\"%\' and VArbTyp4 LIKE \'%\" & strVArbTyp4 &\"%\' and VArbTyp5 LIKE \'%\" & strVArbTyp5 &\"%\' and VArbTyp6 LIKE \'%\" & strVArbTyp6 &\"%\' and VArbTyp7 LIKE \'%\" & strVArbTyp7 &\"%\' and VArbTyp8 LIKE \'%\" & strVArbTyp8 &\"%\' and VArbTyp9 LIKE \'%\" & strVArbTyp9 &\"%\' and VArbTyp10 LIKE \'%\" & strVArbTyp10 &\"%\' and VArbTyp11 LIKE \'%\" & strVArbTyp11 &\"%\' and VArbTyp12 LIKE \'%\" & strVArbTyp12 &\"%\' and VArbTyp13 LIKE \'%\" & strVArbTyp13 &\"%\' and VJobOrd1 LIKE \'%\" & strVJobOrd1 &\"%\' and VJobOrd2 LIKE \'%\" & strVJobOrd2 &\"%\' and VJobOrd3 LIKE \'%\" & strVJobOrd3 &\"%\' and VJobOrd4 LIKE \'%\" & strVJobOrd4 &\"%\' and VJobOrd5 LIKE \'%\" & strVJobOrd5 &\"%\' and VJobOrd6 LIKE \'%\" & strVJobOrd6 &\"%\' and VJobOrd7 LIKE \'%\" & strVJobOrd7 &\"%\' and VJobOrd8 LIKE \'%\" & strVJobOrd8 &\"%\')\"
\'Con.Execute strSQL Set rs = Con.Execute(strSQL)
countSQL = \"Select Count(ID) As count FROM fspSearch WHERE\" strSQL = strSQL & \" (VNavn LIKE \'%\" & strKeyword & \"%\' and KNavn LIKE \'%\" & strKeyworda & \"%\' and VSocialPart LIKE \'%\" & strKeywordvsp &\"%\' and VArbTyp1 LIKE \'%\" & strVArbTyp1 &\"%\' and VArbTyp2 LIKE \'%\" & strVArbTyp2 &\"%\' and VArbTyp3 LIKE \'%\" & strVArbTyp3 &\"%\' and VArbTyp4 LIKE \'%\" & strVArbTyp4 &\"%\' and VArbTyp5 LIKE \'%\" & strVArbTyp5 &\"%\' and VArbTyp6 LIKE \'%\" & strVArbTyp6 &\"%\' and VArbTyp7 LIKE \'%\" & strVArbTyp7 &\"%\' and VArbTyp8 LIKE \'%\" & strVArbTyp8 &\"%\' and VArbTyp9 LIKE \'%\" & strVArbTyp9 &\"%\' and VArbTyp10 LIKE \'%\" & strVArbTyp10 &\"%\' and VArbTyp11 LIKE \'%\" & strVArbTyp11 &\"%\' and VArbTyp12 LIKE \'%\" & strVArbTyp12 &\"%\' and VArbTyp13 LIKE \'%\" & strVArbTyp13 &\"%\' and VJobOrd1 LIKE \'%\" & strVJobOrd1 &\"%\' and VJobOrd2 LIKE \'%\" & strVJobOrd2 &\"%\' and VJobOrd3 LIKE \'%\" & strVJobOrd3 &\"%\' and VJobOrd4 LIKE \'%\" & strVJobOrd4 &\"%\' and VJobOrd5 LIKE \'%\" & strVJobOrd5 &\"%\' and VJobOrd6 LIKE \'%\" & strVJobOrd6 &\"%\' and VJobOrd7 LIKE \'%\" & strVJobOrd7 &\"%\' and VJobOrd8 LIKE \'%\" & strVJobOrd8 &\"%\')\" response.write countSQL RS2 = Con.Execute(countSQL)
If Not (rs.BOF Or rs.EOF) Then
Response.Write \"<table border=0 cellspacing=0 cellpadding=1 width=\'767\'><tr><td width=\'127\' valign=top><img src=images/stamdata.gif></td><td valign=top><b>Søge resultater:</b> \"&strKeyword&\" \"&strKeyworda&\" \"&strKeywordt&\" \"&strVJobOrd1&\" \"&strVJobOrd2&\" \"&strVJobOrd3&\" \"&strVJobOrd4&\" \"&strVJobOrd5&\" \"&strVJobOrd6&\" \"&strVJobOrd7&\" \"&strVJobOrd8&\"<br><table border=0 cellspacing=1 cellpadding=0>\" Response.Write \"<tr align=\'left\' class=\"\"type\"\"><th><img src=images/s_virksomhed.gif></th><th><img src=images/s_kontaktperson.gif></th><th align=center><img src=images/s_socialpartner.gif></th><th align=center><img src=images/s_kontorarbejde.gif></th><th align=center><img src=images/s_lager.gif></th><th align=center><img src=images/s_rengoring.gif></th><th align=center><img src=images/s_type4.gif></th><th><img src=images/s_type5.gif></th><th align=center><img src=images/s_type6.gif></th><th align=center><img src=images/s_type7.gif></th><th align=center><img src=images/s_type8.gif></th><th align=center><img src=images/s_type9.gif></th><th align=center><img src=images/s_type10.gif></th><th align=center><img src=images/s_type11.gif></th><th align=center><img src=images/s_type12.gif></th><th align=center><img src=images/s_type13.gif></th><th align=center><img src=images/s_ordinar.gif></th><th align=center><img src=images/s_sprogskolejob.gif></th><th align=center><img src=images/s_praktik.gif></th><th align=center><img src=images/s_elev.gif></th><th align=center><img src=images/s_lontilskud.gif></th><th align=center><img src=images/s_revalidering.gif></th><th align=center><img src=images/s_fleksjob.gif></th><th align=center><img src=images/s_skanejob.gif></th></tr>\" i = 0 if rs.BOF and rs.EOF Then else if NOT rs.BOF then do while Not rs.EOF i = i + 1 if (i mod 2 = 0) then BColor = \"#E9E9E9\" else BColor = \"#E0E0E0\" end if %>
prof same error the field is called VID but I get the same error Select Count(VID) as antal FROM fspSearch WHERE Microsoft OLE DB Provider for ODBC Drivers error \'80040e14\'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in WHERE clause.
/WEE_guzzie/search_advanceret.asp, line 233
nute I also tried your suggestion but got the same error
strSQL = \"SELECT count(vid) as antal FROM fspSearch WHERE\" strSQL = strSQL & \" (VNavn LIKE \'%\" & strKeyword & \"%\' and KNavn LIKE \'%\" & strKeyworda & \"%\' and VSocialPart LIKE \'%\" & strKeywordvsp &\"%\' and VArbTyp1 LIKE \'%\" & strVArbTyp1 &\"%\' and VArbTyp2 LIKE \'%\" & strVArbTyp2 &\"%\' and VArbTyp3 LIKE \'%\" & strVArbTyp3 &\"%\' and VArbTyp4 LIKE \'%\" & strVArbTyp4 &\"%\' and VArbTyp5 LIKE \'%\" & strVArbTyp5 &\"%\' and VArbTyp6 LIKE \'%\" & strVArbTyp6 &\"%\' and VArbTyp7 LIKE \'%\" & strVArbTyp7 &\"%\' and VArbTyp8 LIKE \'%\" & strVArbTyp8 &\"%\' and VArbTyp9 LIKE \'%\" & strVArbTyp9 &\"%\' and VArbTyp10 LIKE \'%\" & strVArbTyp10 &\"%\' and VArbTyp11 LIKE \'%\" & strVArbTyp11 &\"%\' and VArbTyp12 LIKE \'%\" & strVArbTyp12 &\"%\' and VArbTyp13 LIKE \'%\" & strVArbTyp13 &\"%\' and VJobOrd1 LIKE \'%\" & strVJobOrd1 &\"%\' and VJobOrd2 LIKE \'%\" & strVJobOrd2 &\"%\' and VJobOrd3 LIKE \'%\" & strVJobOrd3 &\"%\' and VJobOrd4 LIKE \'%\" & strVJobOrd4 &\"%\' and VJobOrd5 LIKE \'%\" & strVJobOrd5 &\"%\' and VJobOrd6 LIKE \'%\" & strVJobOrd6 &\"%\' and VJobOrd7 LIKE \'%\" & strVJobOrd7 &\"%\' and VJobOrd8 LIKE \'%\" & strVJobOrd8 &\"%\')\"
This maybe?: strSQL = \"SELECT count(vid) as antal FROM [fspSearch] WHERE\"
or this:
strSQL = \"SELECT count(vid) as antal FROM fspSearch WHERE (VNavn LIKE \'%\" & strKeyword & \"%\' and KNavn LIKE \'%\" & strKeyworda & \"%\' and VSocialPart LIKE \'%\" & strKeywordvsp &\"%\' and VArbTyp1 LIKE \'%\" & strVArbTyp1 &\"%\' and VArbTyp2 LIKE \'%\" & strVArbTyp2 &\"%\' and VArbTyp3 LIKE \'%\" & strVArbTyp3 &\"%\' and VArbTyp4 LIKE \'%\" & strVArbTyp4 &\"%\' and VArbTyp5 LIKE \'%\" & strVArbTyp5 &\"%\' and VArbTyp6 LIKE \'%\" & strVArbTyp6 &\"%\' and VArbTyp7 LIKE \'%\" & strVArbTyp7 &\"%\' and VArbTyp8 LIKE \'%\" & strVArbTyp8 &\"%\' and VArbTyp9 LIKE \'%\" & strVArbTyp9 &\"%\' and VArbTyp10 LIKE \'%\" & strVArbTyp10 &\"%\' and VArbTyp11 LIKE \'%\" & strVArbTyp11 &\"%\' and VArbTyp12 LIKE \'%\" & strVArbTyp12 &\"%\' and VArbTyp13 LIKE \'%\" & strVArbTyp13 &\"%\' and VJobOrd1 LIKE \'%\" & strVJobOrd1 &\"%\' and VJobOrd2 LIKE \'%\" & strVJobOrd2 &\"%\' and VJobOrd3 LIKE \'%\" & strVJobOrd3 &\"%\' and VJobOrd4 LIKE \'%\" & strVJobOrd4 &\"%\' and VJobOrd5 LIKE \'%\" & strVJobOrd5 &\"%\' and VJobOrd6 LIKE \'%\" & strVJobOrd6 &\"%\' and VJobOrd7 LIKE \'%\" & strVJobOrd7 &\"%\' and VJobOrd8 LIKE \'%\" & strVJobOrd8 &\"%\')\"
or this:
strSQL = \"SELECT count(vid) as antal FROM fspSearch WHERE (\" strSQL = strSQL & \"VNavn LIKE \'%\" & strKeyword & \"%\' and \" strSQL = strSQL & \"KNavn LIKE \'%\" & strKeyworda & \"%\' and \" strSQL = strSQL & \"VSocialPart LIKE \'%\" & strKeywordvsp &\"%\' and \" strSQL = strSQL & \"VArbTyp1 LIKE \'%\" & strVArbTyp1 &\"%\' and \" strSQL = strSQL & \"VArbTyp2 LIKE \'%\" & strVArbTyp2 &\"%\' and \" strSQL = strSQL & \"VArbTyp3 LIKE \'%\" & strVArbTyp3 &\"%\' and \" strSQL = strSQL & \"VArbTyp4 LIKE \'%\" & strVArbTyp4 &\"%\' and \" strSQL = strSQL & \"VArbTyp5 LIKE \'%\" & strVArbTyp5 &\"%\' and \" strSQL = strSQL & \"VArbTyp6 LIKE \'%\" & strVArbTyp6 &\"%\' and \" strSQL = strSQL & \"VArbTyp7 LIKE \'%\" & strVArbTyp7 &\"%\' and \" strSQL = strSQL & \"VArbTyp8 LIKE \'%\" & strVArbTyp8 &\"%\' and \" strSQL = strSQL & \"VArbTyp9 LIKE \'%\" & strVArbTyp9 &\"%\' and \" strSQL = strSQL & \"VArbTyp10 LIKE \'%\" & strVArbTyp10 &\"%\' and \" strSQL = strSQL & \"VArbTyp11 LIKE \'%\" & strVArbTyp11 &\"%\' and \" strSQL = strSQL & \"VArbTyp12 LIKE \'%\" & strVArbTyp12 &\"%\' and \" strSQL = strSQL & \"VArbTyp13 LIKE \'%\" & strVArbTyp13 &\"%\' and \" strSQL = strSQL & \"VJobOrd1 LIKE \'%\" & strVJobOrd1 &\"%\' and \" strSQL = strSQL & \"VJobOrd2 LIKE \'%\" & strVJobOrd2 &\"%\' and \" strSQL = strSQL & \"VJobOrd3 LIKE \'%\" & strVJobOrd3 &\"%\' and \" strSQL = strSQL & \"VJobOrd4 LIKE \'%\" & strVJobOrd4 &\"%\' and \" strSQL = strSQL & \"VJobOrd5 LIKE \'%\" & strVJobOrd5 &\"%\' and \" strSQL = strSQL & \"VJobOrd6 LIKE \'%\" & strVJobOrd6 &\"%\' and \" strSQL = strSQL & \"VJobOrd7 LIKE \'%\" & strVJobOrd7 &\"%\' and \" strSQL = strSQL & \"VJobOrd8 LIKE \'%\" & strVJobOrd8 &\"%\')\"
or this:
strSQL = \"SELECT count(vid) as antal FROM fspSearch WHERE\" strSQL = strSQL & \" (VNavn LIKE \'%\" & strKeyword & \"%\' and KNavn LIKE \'%\" & strKeyworda & \"%\' and VSocialPart LIKE \'%\" & strKeywordvsp &\"%\' and VArbTyp1 LIKE \'%\" & strVArbTyp1 &\"%\' and VArbTyp2 LIKE \'%\" & strVArbTyp2 &\"%\' and VArbTyp3 LIKE \'%\" & strVArbTyp3 &\"%\' and VArbTyp4 LIKE \'%\" & strVArbTyp4 &\"%\' and VArbTyp5 LIKE \'%\" & strVArbTyp5 &\"%\' and VArbTyp6 LIKE \'%\" & strVArbTyp6 &\"%\' and VArbTyp7 LIKE \'%\" & strVArbTyp7 &\"%\' and VArbTyp8 LIKE \'%\" & strVArbTyp8 &\"%\' and VArbTyp9 LIKE \'%\" & strVArbTyp9 &\"%\' and VArbTyp10 LIKE \'%\" & strVArbTyp10 &\"%\' and VArbTyp11 LIKE \'%\" & strVArbTyp11 &\"%\' and VArbTyp12 LIKE \'%\" & strVArbTyp12 &\"%\' and VArbTyp13 LIKE \'%\" & strVArbTyp13 &\"%\' and VJobOrd1 LIKE \'%\" & strVJobOrd1 &\"%\' and VJobOrd2 LIKE \'%\" & strVJobOrd2 &\"%\' and VJobOrd3 LIKE \'%\" & strVJobOrd3 &\"%\' and VJobOrd4 LIKE \'%\" & strVJobOrd4 &\"%\' and VJobOrd5 LIKE \'%\" & strVJobOrd5 &\"%\' and VJobOrd6 LIKE \'%\" & strVJobOrd6 &\"%\' and VJobOrd7 LIKE \'%\" & strVJobOrd7 &\"%\' and VJobOrd8 LIKE \'%\" & strVJobOrd8 &\"%\')\"
this one worked perfectly :) strSQL = \"SELECT count(vid) as antal FROM fspSearch WHERE (\" strSQL = strSQL & \"VNavn LIKE \'%\" & strKeyword & \"%\' and \" strSQL = strSQL & \"KNavn LIKE \'%\" & strKeyworda & \"%\' and \" strSQL = strSQL & \"VSocialPart LIKE \'%\" & strKeywordvsp &\"%\' and \" strSQL = strSQL & \"VArbTyp1 LIKE \'%\" & strVArbTyp1 &\"%\' and \" strSQL = strSQL & \"VArbTyp2 LIKE \'%\" & strVArbTyp2 &\"%\' and \" strSQL = strSQL & \"VArbTyp3 LIKE \'%\" & strVArbTyp3 &\"%\' and \" strSQL = strSQL & \"VArbTyp4 LIKE \'%\" & strVArbTyp4 &\"%\' and \" strSQL = strSQL & \"VArbTyp5 LIKE \'%\" & strVArbTyp5 &\"%\' and \" strSQL = strSQL & \"VArbTyp6 LIKE \'%\" & strVArbTyp6 &\"%\' and \" strSQL = strSQL & \"VArbTyp7 LIKE \'%\" & strVArbTyp7 &\"%\' and \" strSQL = strSQL & \"VArbTyp8 LIKE \'%\" & strVArbTyp8 &\"%\' and \" strSQL = strSQL & \"VArbTyp9 LIKE \'%\" & strVArbTyp9 &\"%\' and \" strSQL = strSQL & \"VArbTyp10 LIKE \'%\" & strVArbTyp10 &\"%\' and \" strSQL = strSQL & \"VArbTyp11 LIKE \'%\" & strVArbTyp11 &\"%\' and \" strSQL = strSQL & \"VArbTyp12 LIKE \'%\" & strVArbTyp12 &\"%\' and \" strSQL = strSQL & \"VArbTyp13 LIKE \'%\" & strVArbTyp13 &\"%\' and \" strSQL = strSQL & \"VJobOrd1 LIKE \'%\" & strVJobOrd1 &\"%\' and \" strSQL = strSQL & \"VJobOrd2 LIKE \'%\" & strVJobOrd2 &\"%\' and \" strSQL = strSQL & \"VJobOrd3 LIKE \'%\" & strVJobOrd3 &\"%\' and \" strSQL = strSQL & \"VJobOrd4 LIKE \'%\" & strVJobOrd4 &\"%\' and \" strSQL = strSQL & \"VJobOrd5 LIKE \'%\" & strVJobOrd5 &\"%\' and \" strSQL = strSQL & \"VJobOrd6 LIKE \'%\" & strVJobOrd6 &\"%\' and \" strSQL = strSQL & \"VJobOrd7 LIKE \'%\" & strVJobOrd7 &\"%\' and \" strSQL = strSQL & \"VJobOrd8 LIKE \'%\" & strVJobOrd8 &\"%\')\"
thanks again Guzzie
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.