Results 1 to 3 of 3
  1. #1
    Dody is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    2

    Concatenating 3 Felds

    Hello
    I am creating a query by concatenating 3 fields first one is a lookup text and others are number and lookup. For a reason 1st field (lookup) it does not show any value when running the query only Flied 2 and 3 are showing.
    E.g.
    TowerNo: lookup
    RoomNo: Number
    RoomType: lookup
    I write SQL:
    SELECT [TowerNo] & [RoomNo] & [RoomType] AS RoomAdd
    FROM Table1;
    I get result:
    RoomNo+ RoomType
    TowerNo Field Value is missing ..!!!?
    If I query for TowerNo filed alone it show up perfectly..!!?
    Any Idea how to fix my problem I am using Access 2007

    Thank you

  2. #2
    Rainlover's Avatar
    Rainlover is offline Expert
    Windows XP Access 2003
    Join Date
    Nov 2009
    Location
    Queensland Australia
    Posts
    691
    Use a Query to create this then use the SQL String as required.

  3. #3
    Dody is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    2
    Quote Originally Posted by Rainlover View Post
    Use a Query to create this then use the SQL String as required.


    Thank you for your help..I did use a Query but it seems that the lookup field is now working with me if I add it on the 1st of the concatenation...

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

Similar Threads

  1. Concatenating many fields into one field
    By olidav911 in forum Programming
    Replies: 1
    Last Post: 08-13-2009, 05:14 AM
  2. Concatenating from a table or query.
    By stephen c in forum Programming
    Replies: 3
    Last Post: 07-13-2009, 08:14 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