 | 
28-Jul-2006, 08:35 AM
|  | Guest | | | | | | | | | | RE: Lock data entry in Form In the combobox's AfterUpdate event, put:
Me.AllowEdits=(Me.Status = "Active")
Me.AllowAdditions=Me.AllowEdits
Me.AllowDeletions=Me.AllowEdit
Barry
"Jorg" wrote:
> I have a combo box - Status- with active-closed. when set to "closed" i want
> to lock the data entry for this record.Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309 | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | RE: Lock data entry in Form Hi Barry,
Thanks for your help, it works - but when I reopen the data base the record
set to "close" can be edit again. Any further thoughts?
jorg
"Barry Gilbert" wrote:
> In the combobox's AfterUpdate event, put:
>
> Me.AllowEdits=(Me.Status = "Active")
> Me.AllowAdditions=Me.AllowEdits Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309
> Me.AllowDeletions=Me.AllowEdit Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309
>
> Barry
>
> "Jorg" wrote:
>
> > I have a combo box - Status- with active-closed. when set to "closed" i want
> > to lock the data entry for this record. | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | RE: Lock data entry in Form When you say the record can be edited again, do you mean through the form or
are you trying to edit it in the table?
This code doesn't affect the ability to edit the record, it just changes
properties on the form when the record is displayed. The code basically says,
if the status column on the current record is "active", allow edits,
otherwise don't.
Barry
"Jorg" wrote:
> Hi Barry,
> Thanks for your help, it works - but when I reopen the data base the record
> set to "close" can be edit again. Any further thoughts?
> jorg
>
> "Barry Gilbert" wrote:
> Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309
> > In the combobox's AfterUpdate event, put:
> >
> > Me.AllowEdits=(Me.Status = "Active")
> > Me.AllowAdditions=Me.AllowEdits Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309
> > Me.AllowDeletions=Me.AllowEdit
> >
> > Barry
> >
> > "Jorg" wrote:
> >
> > > I have a combo box - Status- with active-closed. when set to "closed" i want
> > > to lock the data entry for this record. | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | RE: Lock data entry in Form When you say the record can be edited again, do you mean through the form or Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309
are you trying to edit it in the table?
This code doesn't affect the ability to edit the record, it just changes
properties on the form when the record is displayed. The code basically says,
if the status column on the current record is "active", allow edits,
otherwise don't.
Barry
"Jorg" wrote:
> Hi Barry,
> Thanks for your help, it works - but when I reopen the data base the record
> set to "close" can be edit again. Any further thoughts? Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309
> jorg
>
> "Barry Gilbert" wrote:
>
> > In the combobox's AfterUpdate event, put:
> >
> > Me.AllowEdits=(Me.Status = "Active")
> > Me.AllowAdditions=Me.AllowEdits
> > Me.AllowDeletions=Me.AllowEdit
> >
> > Barry
> >
> > "Jorg" wrote:
> >
> > > I have a combo box - Status- with active-closed. when set to "closed" i want
> > > to lock the data entry for this record. | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | RE: Lock data entry in Form Through the form. also once "closed” is applied all other records are also
not edible.
"Barry Gilbert" wrote:
> When you say the record can be edited again, do you mean through the form or
> are you trying to edit it in the table? Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309
>
> This code doesn't affect the ability to edit the record, it just changes
> properties on the form when the record is displayed. The code basically says, Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309
> if the status column on the current record is "active", allow edits,
> otherwise don't.
>
> Barry
>
> "Jorg" wrote:
>
> > Hi Barry,
> > Thanks for your help, it works - but when I reopen the data base the record
> > set to "close" can be edit again. Any further thoughts?
> > jorg
> >
> > "Barry Gilbert" wrote:
> >
> > > In the combobox's AfterUpdate event, put:
> > >
> > > Me.AllowEdits=(Me.Status = "Active")
> > > Me.AllowAdditions=Me.AllowEdits
> > > Me.AllowDeletions=Me.AllowEdit
> > >
> > > Barry
> > >
> > > "Jorg" wrote:
> > >
> > > > I have a combo box - Status- with active-closed. when set to "closed" i want
> > > > to lock the data entry for this record. | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | RE: Lock data entry in Form Ok. You should put this code in the form's OnCurrent event as well.
Barry
"Jorg" wrote:
> Through the form. also once "closed” is applied all other records are also
> not edible.
>
> "Barry Gilbert" wrote:
>
> > When you say the record can be edited again, do you mean through the form or Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309
> > are you trying to edit it in the table?
> >
> > This code doesn't affect the ability to edit the record, it just changes
> > properties on the form when the record is displayed. The code basically says,
> > if the status column on the current record is "active", allow edits,
> > otherwise don't.
> >
> > Barry
> >
> > "Jorg" wrote:
> >
> > > Hi Barry,
> > > Thanks for your help, it works - but when I reopen the data base the record
> > > set to "close" can be edit again. Any further thoughts?
> > > jorg
> > > Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309
> > > "Barry Gilbert" wrote:
> > >
> > > > In the combobox's AfterUpdate event, put:
> > > >
> > > > Me.AllowEdits=(Me.Status = "Active")
> > > > Me.AllowAdditions=Me.AllowEdits
> > > > Me.AllowDeletions=Me.AllowEdit
> > > >
> > > > Barry
> > > >
> > > > "Jorg" wrote:
> > > >
> > > > > I have a combo box - Status- with active-closed. when set to "closed" i want
> > > > > to lock the data entry for this record. | 
28-Jul-2006, 08:36 AM
|  | Guest | | | | | | | | | | RE: Lock data entry in Form Thanks Barry, that was it.
"Barry Gilbert" wrote:
> Ok. You should put this code in the form's OnCurrent event as well.
>
> Barry
>
> "Jorg" wrote:
>
> > Through the form. also once "closed” is applied all other records are also
> > not edible.
> >
> > "Barry Gilbert" wrote:
> >
> > > When you say the record can be edited again, do you mean through the form or
> > > are you trying to edit it in the table?
> > >
> > > This code doesn't affect the ability to edit the record, it just changes Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309 Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13309
> > > properties on the form when the record is displayed. The code basically says,
> > > if the status column on the current record is "active", allow edits,
> > > otherwise don't.
> > >
> > > Barry
> > >
> > > "Jorg" wrote:
> > >
> > > > Hi Barry,
> > > > Thanks for your help, it works - but when I reopen the data base the record
> > > > set to "close" can be edit again. Any further thoughts?
> > > > jorg
> > > >
> > > > "Barry Gilbert" wrote:
> > > >
> > > > > In the combobox's AfterUpdate event, put:
> > > > >
> > > > > Me.AllowEdits=(Me.Status = "Active")
> > > > > Me.AllowAdditions=Me.AllowEdits
> > > > > Me.AllowDeletions=Me.AllowEdit
> > > > >
> > > > > Barry
> > > > >
> > > > > "Jorg" wrote:
> > > > >
> > > > > > I have a combo box - Status- with active-closed. when set to "closed" i want
> > > > > > to lock the data entry for this record. | 
Support Us! Become a Promoter! | | Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh! | (View-All)
Members who have read this thread : 0
| | There are no names to display. | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Tools | Search | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is On | | | | » Active Discussions | | | | | | | | | | | | | | | | | | | Panjabi Today 02:27 AM 11 Replies, 232 Views | | | | | | | | | | | » Books You Should Read... | | | |