Avatar of Tusitala
Tusitala

asked on 

Random times with 12/24 hour switching

All,

I'm wanting to generate some random 12/24 hour times in VB without the date portion.  These times are stored in an Access table as Text values.

Ideally, I would also be able to specify some constraints as well, for example between 8am and 6pm.

Samples:

24hr
14:02:23 PM
19:54:04 PM
03:27:45 AM

12hr
2:02:23 PM
7:54:04 PM
3:27:45 AM

Any suggestions?
Microsoft AccessVBAMicrosoft Excel

Avatar of undefined
Last Comment
Gustav Brock

8/22/2022 - Mon