<snip> åben din db og: Function RandomRec(a) arrRecords = rs.Getrows rs.Close if not rs.eof Randomize() intMaxarr = ubound(arrRecords, 2) for n = 0 to a ranRec = Int((intMaxarr+1) * Rnd) RandomRec = RandomRec & \", \"& arrRecords(2, ranRec) next end if end function
Kald funktionen med RandomRec(a), hvor a er antallet af randomrecords!! Funktionen returnerer en kommasepareret string, som du nemt kan manipulere med Split-funktionen :O)
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.