Results 1 to 6 of 6

Thread: slect an randaom number from access

  1. #1
    Join Date
    Jul 2003
    Posts
    421

    slect an randaom number from access

    we store athe image 's name inside the table , is that possible to random to select it out?
    ________
    Trichomes
    Last edited by sql; 03-06-2011 at 02:07 AM.

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    What do you mean 'random to select it out'?

  3. #3
    Join Date
    Jul 2003
    Posts
    421
    any row in access, by only one row at a time
    ________
    Cannabis news
    Last edited by sql; 03-06-2011 at 02:07 AM.

  4. #4
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    You can use newid() and TOP to get a random record as

    select top 1 * from sysobjects order by newid()

  5. #5
    Join Date
    Sep 2002
    Posts
    5,938
    Are they available in Acess?

  6. #6
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    check this out

    http://www.alvechurchdata.co.uk/accrandom.htm

    you could use rnd function to get the random number and then query the rows that match or close to match the random number and display that record

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •