Results 1 to 6 of 6
  1. #1
    Fairlane is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    13

    Autonumber in multitable form

    I [noob] have created a DB for tracking assets but when I built it I did not have it normalized and am now trying to normalize it.
    AssetTable has
    [Key(autonumber)],[serial(text)],[PN(text)],[measure1(text)],[measure2(text)]

    I am planning to normalize using key field in many tables combined in forms

    SerialTable contains [key],[serial],[PN]

    MeasureTable has [Key(number)],[measure1],[measure2]



    I want to create a form where user can enter serial, PN, measure1, and measure2 at once. As soon as I add fields from MeasureTable autonumber on SerialTable.Key does not work (creates null record in field).

    Any ideas. If I can clarify anything let me know. TIA

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    How and which fields in these three tables related to each other ? Table relationships require the fields to be of same type.
    Here is a guide to it http://office.microsoft.com/en-001/a...010120534.aspx

  3. #3
    Fairlane is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    13
    SerialTable.Key and MeasureTable.Key relate to each other. record SerialTable.Key 14237 (created using Autonumber)would specify the serial number and part number of the asset while MeasureTable.Key 14237 (created via "Default Value" in the form) would specify the desired measurements.

    This way a report would show a serial, PN, and measurements, for a group of assets without having a table with 20 columns in it or omitting assets without any measurements which happens when I manually create measurement records for only the assets that get measured

  4. #4
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    Can you post a screenshot of your table relationships ? What about the AssetTable ?
    record SerialTable.Key 14237 (created using Autonumber)would specify the serial number and part number of the asset while MeasureTable.Key 14237
    From above it looks SerialTable is the Master Table and MeasureTable is the child one.
    As soon as I add fields from MeasureTable autonumber on SerialTable.Key does not work (creates null record in field).
    In which table a null record is created ? How do you enter data in SerialTable ?

  5. #5
    Fairlane is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    13
    I seem to have fixed the issue by starting the DB from scratch. The autonumber worked for SerialTable.Key while putting " " as the default value for measure1 kick-started the MeasureTable.key default = SerialTable.Key action.

    AssetTable is the old unnormalized table that had 20 columns in it.

  6. #6
    maxmaggot is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Location
    Ireland
    Posts
    91
    Can we have a look at a screenshot of your relationships or upload the db to something like box.com and share the link. You can remove private data from a copy of the orinial.That would greatly sppeed up the process
    Last edited by maxmaggot; 08-29-2013 at 06:16 PM. Reason: Spelling errors

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

Similar Threads

  1. Autonumber through a form, not a table
    By Kat-ness in forum Forms
    Replies: 2
    Last Post: 05-02-2013, 04:18 PM
  2. Replies: 1
    Last Post: 08-06-2012, 11:29 AM
  3. Autonumber form and subform question
    By Helen269 in forum Forms
    Replies: 1
    Last Post: 02-05-2012, 11:27 AM
  4. Creation of autonumber on open form
    By Pragmatic in forum Forms
    Replies: 1
    Last Post: 12-17-2011, 11:39 PM
  5. Problems with autonumber field in a form
    By admaldo in forum Forms
    Replies: 0
    Last Post: 02-25-2008, 11:09 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