Retrieving last Number in Field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • David Davis
    New Member
    • Mar 2008
    • 41

    Retrieving last Number in Field

    Hello,

    I am somewhat new at access 2003

    I want to retrieve last sequential number in Field1 in Table1 to put in Field 3 of Table2. How do I do this? I tried Nz(DMax("[Field1]","Table1") )+1 in the default value of Field 3 in Table2 but it came up with Unknown Function 'NZ' in validation expression. Can someone help....

    Thanks

    Dave
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You going to have to populate it through code.

    Comment

    • David Davis
      New Member
      • Mar 2008
      • 41

      #3
      Originally posted by Rabbit
      You going to have to populate it through code.
      Rabbit Thanks for responding,

      Can you give me an example please.

      David

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        Actually, you probably don't need code. Just put it in the default value property of the control that's bound to the field instead of in the table design.

        Comment

        Working...