RE: lock a control on a form
From: Jason (anonymous_at_discussions.microsoft.com)
Date: 07/19/04
- Next message: anonymous_at_discussions.microsoft.com: "Unbound form"
- Previous message: Rick B: "Re: Query Form"
- In reply to: T'Kai: "RE: lock a control on a form"
- Next in thread: Sandra Daigle: "Re: lock a control on a form"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Jul 2004 09:00:10 -0700
Thanks, but I still receive the same error Any other
ideas.
>-----Original Message-----
>
>
>"Jason" wrote:
>
>> I am attempting to lock a control on a form unless a
user
>> is entering a new record, in which case I want the
control
>> to be unlocked. I am using the following code:
>>
>> Private Sub Report_Project_Change()
>> If Forms![Valuation].NewRecord = True Then
>> Me!Counterparty.Locked = False
>> Else
>> Me!Counterparty.Locked = True
>> End If
>>
>> End Sub
>>
>> When I try this, I receive an error stating that the
>> object doesn't support this property or method. What
am I
>> doing wrong?
>>
>> Thanks for your help,
>> Jason
>>
>Try this:
>
>If Me.NewRecord Then
> Me!Counterparty.Locked = False
>Else
> Me!Counterparty.Locked = True
>End If
>.
>
- Next message: anonymous_at_discussions.microsoft.com: "Unbound form"
- Previous message: Rick B: "Re: Query Form"
- In reply to: T'Kai: "RE: lock a control on a form"
- Next in thread: Sandra Daigle: "Re: lock a control on a form"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|