Hello,
I need your help or orientation to figure out how to control a randomily code to open a form/table record.
I have a table/form and I open the record randomily through this code:
record = DCount("[ID]", "FORM")
myvalue = (Int(record * Rnd) + 1)
DoCmd.OpenForm "FORM", , , "ID =" & myvalue
My challenge is:
1) I do not want that same record be opened more than one time a day.
2) Or the record does not be opened again until all records in the table have been opened.
3) The main point is, I can include new records during the day.
I appreciate your help.
I need your help or orientation to figure out how to control a randomily code to open a form/table record.
I have a table/form and I open the record randomily through this code:
record = DCount("[ID]", "FORM")
myvalue = (Int(record * Rnd) + 1)
DoCmd.OpenForm "FORM", , , "ID =" & myvalue
My challenge is:
1) I do not want that same record be opened more than one time a day.
2) Or the record does not be opened again until all records in the table have been opened.
3) The main point is, I can include new records during the day.
I appreciate your help.