Results 1 to 3 of 3
  1. #1
    bupinder is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Sep 2017
    Location
    india
    Posts
    3

    autopopulate field based on previous field in same table.

    i want my table to auto-fill a field based on the previous one.
    the reason i want this to be done is so i can fetch data in a form from a single table instead of multiple, which creates record-source invalid/type mismatch error.

    tblNames
    ID


    Name
    Code
    Desig
    tblWork
    ID
    Work
    Name(as in tblNames)(chosen by a combobox, dropdown)
    Code(need this to autofill based on name, can fetch data from tblNames)

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Really should not save Name into tblWork, save the ID from tblNames.

    Name is a reserved word and should not used reserved words as names for anything.

    Properly designed and related tables should not cause type mismatch error.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 1
    Last Post: 08-03-2016, 05:00 PM
  2. Replies: 8
    Last Post: 10-03-2014, 01:34 PM
  3. Replies: 20
    Last Post: 03-05-2012, 04:56 PM
  4. Replies: 1
    Last Post: 06-21-2011, 03:34 AM
  5. Replies: 9
    Last Post: 09-23-2010, 10:42 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