I only want the Date field to fill in if the name field get filled in. Here's
what it looks like - they are just text fields.
Name Field = (Text66)
Date Field = (Text72)
I only want the Date Field to show todays date if the Name field gets entered.
Thanks
> If the Name field (again, another word with other meanings) is a mandatory
> field, just set the default value of the field to Date()
[quoted text clipped - 18 lines]
> >> Question is how can I get the Date fields to automatically fill in with
> >> today's date only when the name field in that row get's filled in ?
JohnFol - 18 Mar 2005 16:45 GMT
My comment stands. If the name field is mandatory, the record will not be
saved if "Name" is empty / null. As soon as it has a value, the record can
be saved, and hence the date is entered automatically.
>I only want the Date field to fill in if the name field get filled in.
>Here's
[quoted text clipped - 33 lines]
>> >> with
>> >> today's date only when the name field in that row get's filled in ?
Chris Reveille - 18 Mar 2005 21:26 GMT
Try in the after update event on the name field
If not IsNull(Me.[Name]) Then
Me.HireDate = Date()
End If
Chris
>-----Original Message-----
>I only want the Date field to fill in if the name field get filled in. Here's
[quoted text clipped - 31 lines]
>>
>.
AlCamp - 18 Mar 2005 23:48 GMT
>I only want the Date field to fill in if the name field get filled in.
>Here's
[quoted text clipped - 33 lines]
>> >> with
>> >> today's date only when the name field in that row get's filled in ?
AlCamp - 18 Mar 2005 23:51 GMT
I stand by my answer too....
>I'd try using the AfterUpdate event of Name.
>
> If IsNull(Name) = False Then
> HireDate = Date
> End If
Just use your own field names...
Al Camp
>I only want the Date field to fill in if the name field get filled in.
>Here's
[quoted text clipped - 33 lines]
>> >> with
>> >> today's date only when the name field in that row get's filled in ?