943,840 Members | Top Members by Rank

Ad:
Oct 14th, 2008
0

Some help with a VBA solution

Expand Post »
Hi,

I made a small Access DB that has a Date field in it (DUEDATE). The DB is used for demonstration purposes to show current orders.

I need a function that would randomly update the orders due date in the table (orders). I would like to input a starting date and a range (30,60, Etc.) in a text box and have the function randomly create dates based on the start date and within the range input. If the DUEDATE column is empty or has another date should not matter.

Thanks in advance
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vbdave is offline Offline
1 posts
since Dec 2007
Oct 15th, 2008
0

Re: Some help with a VBA solution

Please tell your problem details. I don't understand what you said. please details.
Reputation Points: 14
Solved Threads: 78
Practically a Posting Shark
abu taher is offline Offline
835 posts
since Jul 2008
Oct 26th, 2008
0

Re: Some help with a VBA solution

Click to Expand / Collapse  Quote originally posted by vbdave ...
Hi,

I need a function that would randomly update the orders due date in the table (orders). I would like to input a starting date and a range (30,60, Etc.) in a text box and have the function randomly create dates based on the start date and within the range input. If the DUEDATE column is empty or has another date should not matter.
Do you want the code for the random date generator, or changing the DueDate Column, or both?

The random date generator could get messy, but I'll see what I can do.
Last edited by rstkw; Oct 26th, 2008 at 1:08 pm. Reason: Added last line.
Reputation Points: 10
Solved Threads: 2
Newbie Poster
rstkw is offline Offline
20 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Database Grid View BUT WHICH ONE???
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: VB6 form focus





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC