473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to use if then with date to close application?

547 512MB
I would like to close my application on or after a specific date.
This code closes it without reaching the planned date.
datetime field = Date()

Expand|Select|Wrap|Line Numbers
  1. If Forms![MainF]![datetime] >= "14/02/2011" Then DoCmd.Quit acSave
please help
Jan 28 '11 #1
2 1771
neelsfer
547 512MB
I thought i can get it to work, but no luck. It closes the application whatever >= date i use. please help
Jan 28 '11 #2
neelsfer
547 512MB
got it right!
Expand|Select|Wrap|Line Numbers
  1. If Me.datetime >= #2/14/2011# Then DoCmd.Quit acSave
Jan 29 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Mr. B | last post by:
VB.net 2003 (standard) In my application, within FORM1_LOAD, I check for various things (ie valide user names, files, etc.). What I want to do is upon an event such as "No Valide User Name...
3
by: carmen | last post by:
I need to launch application-2 from application-1 and close application-1. My code is CreateProcess ("app2",0,0,0,0,0,0,0,0,0); Application.Exit(); but application-1 is not terminate since I...
0
by: PawelR | last post by:
Hello group, Sorry my English is very littel. I have question about close other application. For example in my application I have button btCloseWord to close MSWord. How write source code in C# ...
1
by: Ian | last post by:
I have just begun to to learn how to write macros in VC++. For learning purposes, I would like to implement a macro that accesses all files in a 'test' project and makes a series of changes to...
5
by: Nicola Farina | last post by:
Hi all, I've a window form application with 3 forms. I want to catch the security exception when users run this application from a network share, thus I've made this code (I've notice that...
1
by: GeorgeK | last post by:
Hello guys, I'm writing a little application and I need to copy something into the clipboard and then close the application. When I terminate the app with END or Me.Close the clipboard gets...
3
by: rdemyan via AccessMonster.com | last post by:
Sometimes users (including myself) accidentally click on the application close icon in the application menu bar when they meant to just click on the 'X' for the form. Of course the app closes and...
8
by: Rodrigo Juarez | last post by:
Hi I'm using Visual Studio 2005 with visual basic, developing winforms applications I'm adding try catch blocks for error handling and I want to close the application when I got an error....
1
by: Sparky74 | last post by:
Hi Everybody. I have been searching for many hours for an answer to this problem. I hope somebody can help me. I have a C# .NET client application that connects to a TCP/IP C++ server application...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.