G
Guest
Hiya
Right, I'm trying to make an A-Z page for my site. It starts on A, with a
row of 26 letters along the top that you can click on.
Fine so far.
Now I've come to pull the data in from the SQL database, and something very
bizarre is happening. Heres the statement...
SELECT * FROM Artists WHERE (AZArtistName LIKE '" + curLetter + "%')
I was using field names, but tried * to see if it worked. No luck.
If I'm on A, I get no results (i should get 2), on B i get 2 which is right
I think. On M I don't get any where I should get at least a couple.
The statement works perfectly in Enterprise Manager query window... using
WHERE (AZArtistName LIKE 'A%') - works fine, but nothing from code.
Any ideas?!?!
Cheers
Dan
Right, I'm trying to make an A-Z page for my site. It starts on A, with a
row of 26 letters along the top that you can click on.
Fine so far.
Now I've come to pull the data in from the SQL database, and something very
bizarre is happening. Heres the statement...
SELECT * FROM Artists WHERE (AZArtistName LIKE '" + curLetter + "%')
I was using field names, but tried * to see if it worked. No luck.
If I'm on A, I get no results (i should get 2), on B i get 2 which is right
I think. On M I don't get any where I should get at least a couple.
The statement works perfectly in Enterprise Manager query window... using
WHERE (AZArtistName LIKE 'A%') - works fine, but nothing from code.
Any ideas?!?!
Cheers
Dan