473,473 Members | 1,906 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Expired date problem

In a database I have a table that amongst other cells has a "current date"
cell, and "expired date" cell and an "Index Number" cell.

The "index number" cell contains code that converts the "current date" cell
into an index number. (For example: 8/29/03 converts to an index number of
3241. The index number is done on the fly and is not written to the table.

As I needed the index number written to underlying table, there is "after
update" code in the "Current Date" cell that writes index number to the
table.

Now I have to fill the "expired date" cell. This date is 180 days after the
current date. My question is, can I have the "current date" cell do double
duty. Like another line of code somewhere in the "current date" properties,
that will fill the "expired date" cell with a date that is 180 days forward
of the current date.

Any help appreciated,

Thank you,

Bill.
Nov 12 '05 #1
1 5240
HJ
Where do you put this code? I suppose you use this on a form where the
record is being edited. Have a look at the DateAdd function to edit the
expired date.

HJ

"William Bradley" <br******@magma.ca> wrote in message
news:4Q********************@magma.ca...
In a database I have a table that amongst other cells has a "current date"
cell, and "expired date" cell and an "Index Number" cell.

The "index number" cell contains code that converts the "current date" cell into an index number. (For example: 8/29/03 converts to an index number of
3241. The index number is done on the fly and is not written to the table.

As I needed the index number written to underlying table, there is "after
update" code in the "Current Date" cell that writes index number to the
table.

Now I have to fill the "expired date" cell. This date is 180 days after the current date. My question is, can I have the "current date" cell do double
duty. Like another line of code somewhere in the "current date" properties, that will fill the "expired date" cell with a date that is 180 days forward of the current date.

Any help appreciated,

Thank you,

Bill.


Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ecPunk | last post by:
Hi, We have a web application where we want a user to be able to change his/her password if the password has expired but we are unable to do this with ASP (at the moment) because we can't log...
1
by: tomerslider | last post by:
i need some code that show me all the expired product that i have in every month example: the date today is 4/11/05 i need that it will show me all the proudct that there dates betwenn 1/11/05...
4
by: hb | last post by:
Hi, I got the "System.Data.SqlClient.SqlException: Timeout expired. " error on my web application while saving some data. Would you please tell me how to change the settings in SQL Server...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
2
by: Chakravarti Mukesh | last post by:
Hi all, I have put some queries on the page that takes too much time to execute. Thus at the time of peak load it gives the following error. Server Error in '/ge' Application....
2
by: caine | last post by:
I had queries stored in mysql database according to queries publication date (in format 2007-5-6, 2007-4-30 etc.). However, i would like to implement automatic expired queries deletion after 6...
6
by: teenagelcruise | last post by:
Hi, I have a question,i need to do a task which is when client enter the topupdate and topupamount,the expected expired date will appear on the table,can anyone help me since i have spend 2 weeks...
4
by: sriram | last post by:
Hello Friends, I am new to this group so big HIIIIIIII to all :) fine i have a serious doubt about session handling in PHP. After 20 min (default time) session getting expired, session values...
17
by: sharsy | last post by:
Hello guys, I would like some help in generating query criteria that will identify credit cards that have expired on an access database. The specific Field is formatted with a Data Type of...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
1
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.