?
Solved

Countdown timer in vb login script

Posted on 2006-06-14
2
Medium Priority
?
299 Views
Last Modified: 2012-08-13
How do I create a countdown timer to a date in a vb login script?  For example, I want a box to pop up at login to say "Only 21 days left until Big Day!"
0
Comment
Question by:Kevin Smith
[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 Comments
 
LVL 13

Accepted Solution

by:
rettiseert earned 1000 total points
ID: 16906804
Something like this?

    Dim BigDay
    Dim DaysRemaining
   
    BigDay = DateSerial(2006, 6, 30) 'Year, month, day of bigday
    DaysRemaining = DateDiff("d", Date, BigDay)
   
    MsgBox "Only " + Format(DaysRemaining) + " for the big day!", vbInformation
0
 

Author Comment

by:Kevin Smith
ID: 16906969
Worked great, thanks!  I did have to change the last line to:

MsgBox ("Only " &(DaysRemaining) & " for the big day!"), vbInformation

'cause I got a format error.

Thanks rettiseert!
Kevin
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses
Course of the Month8 days, 5 hours left to enroll

765 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