Results 1 to 4 of 4
  1. #1
    pmontalt is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2014
    Posts
    11

    Arrow Autofilling Masterfield on Subform Datasheet Lines

    Hello,



    I have a main form linked to a subform by the "ID" of main form. The subform is a datasheet that has line items. I want it so that every time a new record is created in the subform, the "Line" integer field auto increments from 1 and so on, such as the first line they enter would be 1, then the second be 2, etc. How would I go about doing this?

    I've provided a screenshot. Right now I entered in the line numbers manually.



    Thanks!!

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    If the 2 forms are linked correctly, then the data will display correctly.Does the subform have it's own table for the record source? If so then the record will have a counter using the Primary Key! The pic you have shown displays this, I am confused???

  3. #3
    pmontalt is offline Novice
    Windows 8 Access 2013
    Join Date
    Mar 2014
    Posts
    11
    I entered in the Line numbers manually right now, I want it to be an auto increment field starting at 1 for each set of records associated with the current main form's ID, as in Job 371 would have line items 1,2,3 and when you go to Job 372, it would again begin from Line item 1 and so on.

    There is a table that the subform is based on, it's own table TasksDNAAuthentication. It is a linked table from SQL Server.

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    This can be done using either the Primary Key or a Custom Counter. The table from the SQL Server should have it's own Primary Key and would of course auto increment.
    If you want to use a Custom Counter, let me know and I can provide help with this.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 08-18-2013, 09:14 PM
  2. Replies: 1
    Last Post: 07-22-2013, 12:00 PM
  3. Replies: 6
    Last Post: 11-21-2012, 05:10 PM
  4. Replies: 8
    Last Post: 08-26-2012, 11:11 PM
  5. Issue with using a datasheet in a subform
    By Meichmann in forum SharePoint
    Replies: 2
    Last Post: 01-17-2012, 07:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums