T
tdi1686
I am using the following SQL (Access) code to pick some records out of a
table of 200 or so records. The ASP.NET code utilizes Dreamweaver MX's
MMataset.
SELECT TOP 1 *
FROM specUsedCars
ORDER BY Rnd([carID]);
SELECT *
FROM specUsedCars
ORDER BY RND([carID]);
This does pick a random record, however it always picks the same one. At
first I thought that it was just caching it but it appears not.
I have tried creating a Query in the Access DB using the above code and then
in the ASP.NET code doing a SELECT * from Queryname but that produces the
same.
I have read about creating Modules in access using the VB
randomize/randomizer function but I dont know how to do this.
table of 200 or so records. The ASP.NET code utilizes Dreamweaver MX's
MMataset.
SELECT TOP 1 *
FROM specUsedCars
ORDER BY Rnd([carID]);
SELECT *
FROM specUsedCars
ORDER BY RND([carID]);
This does pick a random record, however it always picks the same one. At
first I thought that it was just caching it but it appears not.
I have tried creating a Query in the Access DB using the above code and then
in the ASP.NET code doing a SELECT * from Queryname but that produces the
same.
I have read about creating Modules in access using the VB
randomize/randomizer function but I dont know how to do this.