Solved

Date Problem

Posted on 2002-07-26
3
176 Views
Last Modified: 2013-12-18
Ok.  I have had it with this problem, it is giving me a headache.  I have a button on a form and when it is clicked (it is open as a uidoc at the time) I want it to update the "txtEstCompDate" field with a date that is 5 days ahead. So if that submit day in the 5/10/02, I want the EstCompDate to read 5/15/02.

Thanks in advance.

Dim EstCompDate As String
EstCompDate=Today()
Call uidoc.FieldSetText("txtEstCompDate",EstCompDate+5)
0
Comment
Question by:pucktarget2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
Arunkumar earned 50 total points
ID: 7180658
Try this one !

Call uidoc.FieldSetText("txtEstCompDate", Cstr( Cdat(EstCompDate) +5))

:-)
Arun.
0
 

Author Comment

by:pucktarget2
ID: 7180670
That did it!!!

Thanks for the quick help.
0
 
LVL 9

Expert Comment

by:Arunkumar
ID: 7180747
No Problem... I thought I had already retired from answering here @EE !

:-)
Arun.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question