Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1. Monthly (Recurring) Target: $300 :: Achieved: $95
      Become a Supporter    ::   Make a Contribution   

Form "Get Last"

Discussion in 'Information Technology' started by Rusty, Jul 28, 2006.

  1. Rusty

    Rusty
    Expand Collapse
    Guest

    I process a new record every 30 seconds. Half of the forms field entrys are
    repetitively the same. Rather than let my hired help go into the "DEFALT"
    settings and edit it, I'd rather the form recalled the last entry from the
    first record in the current run.

    We process/induct a new group of cattle with new "Pen #'s", & "Tag Colors"
    etc. and wouild like to enter the appropriate info/data with the first record
    today and have the form recall those field entrys from the first record today
    and each subsequent record (field specific) until we are done the batch run.
    --
    Rusty
     
  2. Loading...


  3. Steve Schapel

    Steve Schapel
    Expand Collapse
    Guest

    Rusty,

    On the After Update event of the form, you can put code like this...

    Me.Pen_No.DefaultValue = Me.Pen_No
    Me.Tag_Color.DefaultValue = """" & Me.Tag_Color & """"
    etc.

    The syntax I have used in this example assumes that Pen No is a number
    data type and Tag Color is a text data type.

    Note also that I have used Pen No instead of Pen # - it is not a good
    idea to use a # as part of the name of a field or control.

    --
    Steve Schapel, Microsoft Access MVP

    Rusty wrote:
    > I process a new record every 30 seconds. Half of the forms field entrys are
    > repetitively the same. Rather than let my hired help go into the "DEFALT"
    > settings and edit it, I'd rather the form recalled the last entry from the
    > first record in the current run.
    >
    > We process/induct a new group of cattle with new "Pen #'s", & "Tag Colors"
    > etc. and wouild like to enter the appropriate info/data with the first record
    > today and have the form recall those field entrys from the first record today
    > and each subsequent record (field specific) until we are done the batch run.
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page