Results 1 to 2 of 2
  1. #1
    kathyb is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Feb 2015
    Posts
    1

    Calulated Text Field Using Concatenated Test Lookup Fields

    Hello,



    This is my first post and I am sure an easy question.

    I am setting up a golf club membership database in Access 10.

    I have created a Roster table which includes member information field including Address, City, State and Zip among others. The City and State fields are populated via separate lookup tables (CiityLookup and StateLookup, respectively). These two fields in the Roster table have been populated, without incident, using combo list containing the following values– City – Carson City, Gardneville, Markleeville, Minden… - State – CA, NV. I then created a calculated field in the in the Roster table using the following Expression syntax – [City] & ", " & [State] & " " & [Zip]. An Example of the expected result would be Minden, NV 89423, however the actual result is 4, 2 89423. The 4 and 2 representing the numeric location of the value in the corresponding lists where 4 = Minden, 2 = NV. I have checked and played with relationships, data types, etc. and for the life of me cannot figure this out.

    Any help would be greatly appreciated.

    Thanks in advance
    kathyb

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    That's because the actual values in the Roster table City and State fields are the ID values from the lookup tables. Review http://access.mvps.org/access/lookupfields.htm

    To retrieve the city and state names, build query that joins the tables.
    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.

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

Similar Threads

  1. Replies: 3
    Last Post: 05-31-2014, 11:37 AM
  2. Replies: 5
    Last Post: 04-09-2014, 03:34 PM
  3. Replies: 3
    Last Post: 02-12-2014, 12:18 PM
  4. Replies: 2
    Last Post: 08-24-2012, 07:28 AM
  5. Sum values in concatenated fields
    By jdrubins in forum Reports
    Replies: 4
    Last Post: 09-01-2009, 07:20 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