Results 1 to 2 of 2
  1. #1
    edwardcga is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    31

    Auto numbering of new records

    I am creating an application for recording offerings in a church. My Table structure are:
    OFFERING HEADER TABLE
    OFF_ID
    DATE

    OFFERING_DETAIL
    OFF_ID
    ENV_NO (text field "M001")
    GEN_AMT
    BLDG_AMT
    OTHERS_AMT
    TOT_AMT (CALCULATED FIELD)

    I would like to build a form for entering date (OFFERING_HEADER and subform OFFERING_DETAIL)
    USER create a new offering_ID and enter all offerings by each envelope received.



    I would like to have the ENV_NO auto advanced by 1, the format is 1 CHARACTER "M" for cash, "Q" for chq. How can I accomplish this.

    Thanks

    R

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Consider this structure:

    Code:
    OFFERING_HEADER
    -------------------
    OFF_ID_PK (Autonumber)
    OFF_DATE
    
    
    OFFERING_DETAIL
    -----------------
    OFFDET_PK (Autonumber)
    OFF_ID_FK  (link (foreign key) to table OFFERING_HEADER)
    ENV_NO (text field "M001")
    GEN_AMT
    BLDG_AMT
    OTHERS_AMT
    TOT_AMT  (CALCULATED FIELD)
    "Date" is a reserved word in Access and shouldn't be used as object name.
    "TOT_AMT" - Calculated fields generally should not be saved in a table because it can be calculated when necessary.


    I would like to have the ENV_NO auto advanced by 1, the format is 1 CHARACTER "M" for cash, "Q" for chq. How can I accomplish this.
    See
    http://baldyweb.com/CustomAutonumber.htm
    http://www.vbforums.com/showthread.p...-autonumbering
    http://www.bigresource.com/VB-Access...tml#rIbrSkTZWZ

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

Similar Threads

  1. Access Auto Numbering
    By edieb in forum Access
    Replies: 1
    Last Post: 09-25-2013, 11:03 AM
  2. Trouble recovering database : Auto numbering
    By ArseniusCamillus in forum Access
    Replies: 4
    Last Post: 02-14-2012, 04:56 AM
  3. how to get auto numbering on continuous form records
    By shubhamgandhi in forum Programming
    Replies: 1
    Last Post: 08-04-2011, 02:26 PM
  4. Auto numbering of forms
    By bgeorge12 in forum Forms
    Replies: 5
    Last Post: 06-30-2011, 05:05 PM
  5. Auto Numbering
    By rkruczk in forum Forms
    Replies: 0
    Last Post: 10-09-2006, 04:25 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