M
MMesarch
HI,
I am pulll records from a ACCESS database for display on the web. I have 20
records but want to randomly display 10. On the webside of things (using
ASP) I am planning on reading on the first 10 records from the database.
So I thought I could create a query where I create an id that uses the Rnd
function to create an ID I can sort from the web call.
I realize I have to use the Randomize statement to create the different
sequence for each call. But I cannot figure out how to use the Randomize
statement.
I tried creating a Public function that used the Radnomized Statement and
then use that in the query to create the new ID. But I get an error out on
the web that says it does not recognize the public function.
How can I just apply the Randomize statement to the query when it loads (on
each call) and then just use the Rnd function itself in the equation.
I almost got this to work by just having randomize hanging outside of
procedure, but this is not really right.
THanks.
I am pulll records from a ACCESS database for display on the web. I have 20
records but want to randomly display 10. On the webside of things (using
ASP) I am planning on reading on the first 10 records from the database.
So I thought I could create a query where I create an id that uses the Rnd
function to create an ID I can sort from the web call.
I realize I have to use the Randomize statement to create the different
sequence for each call. But I cannot figure out how to use the Randomize
statement.
I tried creating a Public function that used the Radnomized Statement and
then use that in the query to create the new ID. But I get an error out on
the web that says it does not recognize the public function.
How can I just apply the Randomize statement to the query when it loads (on
each call) and then just use the Rnd function itself in the equation.
I almost got this to work by just having randomize hanging outside of
procedure, but this is not really right.
THanks.