
28-Jul-2006, 08:20 AM
|  | Guest | | | | | | | | | | Re: Prohibit record navigation On Wed, 14 Jun 2006 00:39:21 +0100, "John"
wrote:
>Hi
>
>I need to block user from moving away from a record using any of
>First/Last/Prev/Next/New Record or any other way IF the record has not been
>saved, and displaying a message to the effect "Please finish editing". If
>however the user has explicitly saved the record using save from the access
>menu then allow to move from record. How do I achieve this via code? Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11372 Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11372
Set Cancel to True in the Form's BeforeUpdate event until you're
satisfied.
John W. Vinson[MVP] | 
28-Jul-2006, 08:20 AM
|  | Guest | | | | | | | | | | Re: Prohibit record navigation Is there a way to distinguish between a) before update event due to explicit
save action from access menu and b) before update by other reasons such as
moving away from the record? Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11372
Thanks
Regards Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11372
"John Vinson" wrote in message
news:crpu82lel42hqgv2sm8b83f3cluanck151@4ax.com...
> On Wed, 14 Jun 2006 00:39:21 +0100, "John"
> wrote:
>
>>Hi
>>
>>I need to block user from moving away from a record using any of
>>First/Last/Prev/Next/New Record or any other way IF the record has not
>>been
>>saved, and displaying a message to the effect "Please finish editing". If
>>however the user has explicitly saved the record using save from the
>>access
>>menu then allow to move from record. How do I achieve this via code?
>
> Set Cancel to True in the Form's BeforeUpdate event until you're
> satisfied.
>
> John W. Vinson[MVP] | 
28-Jul-2006, 08:20 AM
|  | Guest | | | | | | | | | | Re: Prohibit record navigation On Wed, 14 Jun 2006 03  37 +0100, "John"
wrote:
>Is there a way to distinguish between a) before update event due to explicit Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11372 Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11372
>save action from access menu and b) before update by other reasons such as
>moving away from the record?
Not that I know of. The BeforeUpdate event fires upon any action which
causes the record to be saved to disk - navigating off the record,
closing the form, Records... Save, whatever. Why?
John W. Vinson[MVP] | 
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 | | | | » Gurbani Jukebox | Listen to Gurbani while surfing SPN! | » Active Discussions | | | | | ਨਾਮਾ Today 06:37 AM 2 Replies, 45 Views | | | | | | | | | | | | | | | | | | | | | | | | | » Books You Should Read... | | | |