Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 01:56 PM
William Bradley
Guest
 
Posts: n/a
Default 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.


  #2  
Old November 12th, 2005, 01:57 PM
HJ
Guest
 
Posts: n/a
Default Re: Expired date problem

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" <bradleyw@magma.ca> wrote in message
news:4Q-dnWaGw6awDNKiXTWJhQ@magma.ca...[color=blue]
> 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"[/color]
cell[color=blue]
> 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[/color]
the[color=blue]
> 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"[/color]
properties,[color=blue]
> that will fill the "expired date" cell with a date that is 180 days[/color]
forward[color=blue]
> of the current date.
>
> Any help appreciated,
>
> Thank you,
>
> Bill.
>
>[/color]



 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,174 network members.