P
Paolo Galli
Hi all I have a problem with an ASP page and an Access query
The following query works fine into Access 2007
SELECT tbl_gallery.id, tbl_gallery.nome, tbl_gallery.luogo,
tbl_gallery.provincia, tbl_gallery.data, tbl_gallery.descrizione,
tbl_gallery.esposizione, tbl_gallery.diorama, tbl_gallery.privato,
tbl_gallery.cap, tbl_gallery.telefono, tbl_gallery.online
FROM tbl_gallery
WHERE (((tbl_gallery.nome) Like [?] & "*") AND
((tbl_gallery.diorama)=No) AND ((tbl_gallery.online)=Yes))
ORDER BY tbl_gallery.nome;
it extract all the name starting with the letter I specify
anyway when I call the query into an ASP page I get no records shown
here a snippet...
Set rs_pres_amici = Server.CreateObject("ADODB.Recordset")
rs_pres_amici.cursorlocation = 3
con_pres_amici.q_gallery chiave, rs_pres_amici
totalRecs = rs_pres_amici.RecordCount
quanti = 20
pag = Request.QueryString("pag")
If IsNumeric(pag) = False Or pag < 1 Then pag = 1
contatore = 0
If rs_pres_amici.EOF then
I always get NO RECORDS FOUND
where is my error ?
thanks
Paolo
The following query works fine into Access 2007
SELECT tbl_gallery.id, tbl_gallery.nome, tbl_gallery.luogo,
tbl_gallery.provincia, tbl_gallery.data, tbl_gallery.descrizione,
tbl_gallery.esposizione, tbl_gallery.diorama, tbl_gallery.privato,
tbl_gallery.cap, tbl_gallery.telefono, tbl_gallery.online
FROM tbl_gallery
WHERE (((tbl_gallery.nome) Like [?] & "*") AND
((tbl_gallery.diorama)=No) AND ((tbl_gallery.online)=Yes))
ORDER BY tbl_gallery.nome;
it extract all the name starting with the letter I specify
anyway when I call the query into an ASP page I get no records shown
here a snippet...
Set rs_pres_amici = Server.CreateObject("ADODB.Recordset")
rs_pres_amici.cursorlocation = 3
con_pres_amici.q_gallery chiave, rs_pres_amici
totalRecs = rs_pres_amici.RecordCount
quanti = 20
pag = Request.QueryString("pag")
If IsNumeric(pag) = False Or pag < 1 Then pag = 1
contatore = 0
If rs_pres_amici.EOF then
I always get NO RECORDS FOUND
where is my error ?
thanks
Paolo