Re: I want to lock a field after Update
- From: "debbie" <debbie.hatcher@xxxxxxxxx>
- Date: Fri, 27 Jan 2006 14:14:27 -0500
Tried it again it didn't give me an error but it didn't work. I am still
locked out to the field. I guess because the record is not new. Who ever
initiates the correspondence actually chooses the Approvers. What if I use
somesort of Not Null on the actual fields? Do you think that would work.
"Klatuu" <Klatuu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E50935E9-2AF1-4DD1-9516-54CF93F98A89@xxxxxxxxxxxxxxxx
> What error did you get? It would be helpful to know that. The only thing
> I
> see that could cause the error is the name of the control. Since I don't
> know what your control name is, I made one up.
>
> The NewRecord Property is to know if the current record is a new record or
> not. If it is a new record, then the code above should unlock the
> controls.
> When you navigate to an existing record, it should lock the controls.
>
> Also, are you using date and time for you data? If you don't need the
> time,
> you could use just Date, Now returns data and time.
>
>
> "Klatuu" wrote:
>
>> Try this in the Current event of the form:
>>
>> Me.txtDateStamp.Locked = Not Me.NewRecord
>>
>> "debbie" wrote:
>>
>> > I have a form that automaticly puts a date stamp in when clicked on. I
>> > want
>> > to lock it after the first date stamp so that the date can not change
>> > but
>> > everything I have done either locks or unlocks it. Can someone help?
>> >
>> >
>> >
.
- Follow-Ups:
- Re: I want to lock a field after Update
- From: debbie
- Re: I want to lock a field after Update
- From: debbie
- Re: I want to lock a field after Update
- References:
- I want to lock a field after Update
- From: debbie
- I want to lock a field after Update
- Prev by Date: Re: =Now() as a text box control source...
- Next by Date: Re: (simple?) normalization - parent-child subform question
- Previous by thread: Re: I want to lock a field after Update
- Next by thread: Re: I want to lock a field after Update
- Index(es):
Relevant Pages
|