Autofill possible???

pdbowling

Registered User.
Local time
Today, 13:21
Joined
Feb 14, 2003
Messages
179
Hi, I have two date fields next to one another in a database, one is always variable so must be entered but the second is ALWAYS 3 years - 1 day from the first. I've been asked to have the second autofill after the first is entered. Possible???????
Thank
PB
 
OK

Great, now here's the stupid question. Where do I put it? This is the example in the dateAd function

= DateAdd("d", 30, [OrderDate])
where order date is the base date

Where do I put this???? Thanks again for your assistance.
PB
 
If you're entering the info on a form, put a macro or VBA sub in the AfterUpdate event property of the first field's control that will make the value of the second field's control equal to your DateAdd statement.

--Dating Mac
 
OK

Great, now here's the stupid question. Where do I put it? This is the example in the dateAd function

= DateAdd("d", 30, [OrderDate])
where order date is the base date

Where do I put this???? Thanks again for your assistance.
PB
 
deja vu

Are you intentionally repeating yourself, or is this some strange glitch w/ the forum's ware?

Open the properties for control #1. Select the AfterUpdate property. Tell it to run a macro. In that macro, set the value for control #2 to the result of your formula.
 
Repeats

Don't know what happened, maybe a stray mouse click or something. Wasn't meaning to repost. Thanks for all your help.
PB
 

Users who are viewing this thread

Back
Top Bottom