Forums

This topic is locked

show random records

Posted 10 Jul 2001 10:24:34
1
has voted
10 Jul 2001 10:24:34 Hans Gelok posted:
Hi, is it possible to show random records (text). I´m using ASP / Access / Ultradev,
thnks

Replies

Replied 10 Jul 2001 15:35:47
10 Jul 2001 15:35:47 Viktor Farcic replied:
Try this:

<% Randomize Timer
Dim rndNumber
rndNumber = Int(RND *(NumberOfRecords))
RecordsetName.Move rndNumber %>

Don't forget to change NumberOfRecords & RecordsetName.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi, is it possible to show random records (text). I´m using ASP / Access / Ultradev,
thnks
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Replied 07 Aug 2001 18:44:58
07 Aug 2001 18:44:58 Carl Boudreaux replied:
Where would you place this code in relation to the ud generated code

Replied 08 Aug 2001 08:32:34
08 Aug 2001 08:32:34 Hans Gelok replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Where would you place this code in relation to the ud generated code
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

<font face='Verdana'>I´ve placed it just there where i wanted it; not at the top.</font id='Verdana'>

Reply to this topic