Professional Web Applications Themes
  1. #1

    Default Which event to use?

    Hi there,

    I am just full of questions today.

    What is the best event to use such that, as soon as data
    is entered in ANY field on the form, the record is saved
    to the table.

    I am interested in this using Access 97, for a multiuser
    environment.

    Many thanks,
    Carlee
    carlee Guest

  2. #2

    Default RE: Which event to use?

    Hi Carlee,

    My name is Dennis Schmidt. Thank you for using the Microsoft Windows
    Installer Newsgroups.

    You would need to place code on each of the form controls. Using the
    "OnExit" would probably be as good as any.

    I hope this helps! If you have additional questions on this topic, please
    reply to this posting.

    Need quick answers to questions like these? The Microsoft Knowledge Base
    provides a wealth of information that you can use to troubleshoot a problem
    or answer a question! It's located at
    http://support.microsoft.com/support/c.asp?M=F>.

    This posting is provided "AS IS" with no warranties, and confers no rights.
    You assume all risk for your use. 2001 Microsoft Corporation. All rights
    reserved.

    Regards,
    Dennis Schmidt
    Microsoft Support

    Dennis Guest

  3. #3

    Default Re: Which event to use?

    carlee wrote:
     


    The Before Update event of the form should fire when you manually
    change the data in a Control. So, in the Form's Before Update event,
    put the following single line of code:

    If Me.Dirty = True Then Me.Dirty = False

    to save the record.

    hth

    Hugh
    Hugh Guest

  4. #4

    Default Re: Which event to use?

    On Thu, 14 Aug 2003 14:01:46 -0700, "carlee"
    <gc.ca> wrote:
     

    THe AfterUpdate event of *each and every* control for which you wish
    this behavior to trigger.

    Private Sub txtXYZ_AfterUpdate()
    If Me.Dirty = True Then
    Me.Dirty = False
    End If
    End Sub


    John W. Vinson[MVP]
    Come for live chats every Tuesday and Thursday
    http://go.compuserve.com/msdevapps?loc=us&access=public
    John Guest

  5. #5

    Default Re: Which event to use?

    <chuckle> Three experts... three solutions. And they'll all work.

    "There are nine and ninety ways
    Of constructing tribal lays
    And EVERY SINGLE ONE OF THEM IS RIGHT!" - Kipling

    John W. Vinson[MVP]
    Come for live chats every Tuesday and Thursday
    http://go.compuserve.com/msdevapps?loc=us&access=public
    John Guest

Similar Threads

  1. Getting Error: Event Type 'flash.event:event' is unavailable ?????
    By malik.robinson@gmail.com in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: January 14th, 01:51 AM
  2. stumped...table - row - click event, cancel checkbox event
    By dave in forum ASP.NET Building Controls
    Replies: 0
    Last Post: September 2nd, 01:28 AM
  3. Replies: 2
    Last Post: December 17th, 03:58 PM
  4. Replies: 0
    Last Post: April 5th, 02:26 PM
  5. Replies: 0
    Last Post: July 28th, 11:40 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139