Results 1 to 3 of 3
  1. #1
    FinChase is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    20

    Auto-populate fields in appended records

    I am building a database in Access 2010 that will be used for tracking the revenue cycle for invoices. Each month we will be importing 4 Excel spreadsheets, each into a separate corresponding Access tables. For example, data from the Unbilled worksheet will be imported into tblUnbilled, and the Category for each record will be "Unbilled".



    The existing table already contains a field called Category, and I need it to populate that field for each newly imported record because the field will not exist in the spreadsheet I am importing. I know I could add the field in the Excel worksheet before importing it, but I want my users to have to do as little data scrubbing as possible when I turn it over to them.

    Is there a way I can pre-set a field's value to the specific category? I could set up an Update query and have it run after the import, but I'd rather avoid that if there is an easier way to have this field automatically populated for me.

    Any help will be appreciated.

  2. #2
    hapm is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    197
    Set the default value property for the field in the design view of the table. Or if you use an INSERT INTO query simply add the value as a constant field in the query designer.

  3. #3
    FinChase is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2011
    Posts
    20
    Quote Originally Posted by hapm View Post
    Set the default value property for the field in the design view of the table. Or if you use an INSERT INTO query simply add the value as a constant field in the query designer.
    Thanks! That worked.

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

Similar Threads

  1. Replies: 3
    Last Post: 05-03-2014, 11:00 AM
  2. How do I auto populate several fields at once
    By learmanj in forum Programming
    Replies: 4
    Last Post: 07-20-2013, 11:41 AM
  3. Auto Populate Fields & New Entry
    By Jarede in forum Forms
    Replies: 6
    Last Post: 02-12-2013, 05:23 PM
  4. Auto Populate two fields
    By funkygoorilla in forum Access
    Replies: 7
    Last Post: 08-31-2011, 09:06 PM
  5. Replies: 12
    Last Post: 08-30-2011, 03:36 PM

Tags for this Thread

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