Feb 2, 2006 #1 ebizleads Technical User Sep 14, 2005 57 US I need to update a date field with a random date between a date range. How do I do this? Thanks! Ebiz
I need to update a date field with a random date between a date range. How do I do this? Thanks! Ebiz
Feb 2, 2006 #2 PHV MIS Nov 8, 2002 53,708 FR Int((MaxDate - MinDate + 1) * Rnd + MinDate) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Int((MaxDate - MinDate + 1) * Rnd + MinDate) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Feb 2, 2006 Thread starter #3 ebizleads Technical User Sep 14, 2005 57 US hmmm....I plugged this in and everthing went to 12:00am. Int((8/1/2005-8/1/2004+1)*Rnd()+8/1/2004) Thanks for your help! Ebiz Upvote 0 Downvote
hmmm....I plugged this in and everthing went to 12:00am. Int((8/1/2005-8/1/2004+1)*Rnd()+8/1/2004) Thanks for your help! Ebiz
Feb 2, 2006 #4 PHV MIS Nov 8, 2002 53,708 FR Int((#2005-08-01#-#2004-08-01#+1)*Rnd()+#2004-08-01#) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Int((#2005-08-01#-#2004-08-01#+1)*Rnd()+#2004-08-01#) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886