I need the ability to randomly present records to end users who are utilizng
the same form. I would like to avoid the possiblity of two people working
the same record at the same time...
Thanks,
That will be tricky and unreliable. Random means random - and there could be
two users who randomly end up on the same record!
What is the nature of the data in the tables? How is it that users will "not
care" which record they're editing?
In order to do it, you'll need to use a split database
(
http://www.granite.ab.ca/access/splitapp.htm); and the form will need to be
based on a query sorting the table in random order. . Put this little function
into a Module:
Public Function RndNum(vIgnore As Variant) As Double
Static bRnd As Boolean
If Not bRnd Then
'Initialize the random number generator once only
bRnd = True
Randomize
End If
RndNum = Rnd()
End Function
Then add a calculated field to your Query by typing
Shuffle: RndNum([fieldname])
in a vacant Field cell, where [fieldname] is any field in
your table - this forces Access to give a different random
number for each record. Sort the query by this field.