Question : Picking a random name.

Good afternoon experts.

Can any of you make me look super smart?  LOL.   I need hopefully a very simple function.  I have a table.  with Pri key (auto)  and a persons name.  FNAME and LNAME.  I have a form with a text box.  I want to be able to push a button to call a function to pick one of the names randomly in the table and display it in the box.  Like a lottery.  

Can anyone help?   Much appreciated.  

Answer : Picking a random name.

change :
If (DatePart("yyyy",strArtDate) <> DatePart("yyyy",oldArtDate)) Then


Response.Write("<b><font color=""#000000"">&nbsp;&nbsp;" &  DatePart("yyyy",oldArtDate) & "</font></b>")

it will probably show one record per year if i read the code right, but it's a step ahead :-P
Random Solutions  
 
programming4us programming4us