Results 1 to 2 of 2
  1. #1
    Arnie_c is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2013
    Location
    Valparaiso, IN
    Posts
    1

    problem with "lookup"

    For years and years, I’ve been using a DOS database, PC-File by Jim Button (if anybody remembers that far back). I wrote applications for keeping track of my billable time as well as a number of other applications. Well, the last of the DOS machines finally gave up the ghost and I’ve settled on Access. Fortunately, the data is intact and can be imported from the old hard drive.




    Here’s the problem I’m having. In the old database, I had a table for “service codes” and a separate table for timestrips . The secretary would enter the three digit code in the timestrip table and the program would fetch the corresponding textual entry.


    For example, if the secretary typed the service code “055", the textual entry “telephone call from” would be fetched. The text would not actually appear in the timestrip but when a report was run, the corresponding data would be fetched. The old DOS command in the timestrip table was “ (@SVCCODE,c:\pgfdb\svcs\svcs,codeno,text).


    There were about 200 separate service codes in the service codes table.


    I want to replicate that functionality in Access 2010 and am stumped as to how to go about it. I believe this to be a "lookup" function. Any help will be much appreciated.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Typically in a query you would include both tables, joined on the code field. That enables you to return the text as part of the result. For display on the entry form this may be of interest:

    BaldyWeb - Autofill
    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: 12-28-2012, 02:54 PM
  2. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  3. Replies: 11
    Last Post: 03-29-2012, 02:32 PM
  4. "IIf" "AND/OR" Expression Problem
    By SpdRacerX in forum Forms
    Replies: 1
    Last Post: 02-08-2012, 08:52 AM
  5. Complex Table "Lookup" Lists
    By Rawb in forum Access
    Replies: 19
    Last Post: 03-01-2011, 02:52 PM

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