Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Question about VBScript

Posted on 2003-02-22
Medium Priority
Last Modified: 2010-05-01
Does anyone know if it's possiple to write a script that makes a MsgBox open on a certain day?
Question by:c-prompt

Expert Comment

ID: 7999832
Yes its possible, but why not use a scheduler ?

Author Comment

ID: 7999856
well, i dont know how to use a scheduler, plus i want to do it manually, i need to practice my programming skills.

Accepted Solution

Jacamar earned 200 total points
ID: 8000316
Add a timer control to your form.  And enter the following code to your command button code, or your form load code if you wish.

Private Sub Command1_Click()
Dim stDate As String

stDate = Format(Now, "short date")

If stDate = "2/22/2003" Then
Call MsgBox("Take out the garbage", vbInformation, "Today's Duties")
End If

End Sub

Good luck.


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

572 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