+ Reply to Thread
Results 1 to 2 of 2

Concatenation of numbers and text but only to display certain values?

  1. #1
    Registered User
    Join Date
    06-24-2014
    Location
    Ontario, CA
    MS-Off Ver
    2010
    Posts
    45

    Concatenation of numbers and text but only to display certain values?

    Hi,

    I have tried several ways of trying to get rid get of blanks from a new field called the UCN created by combing two tables in a query. I found that adding "Is Not Null" to the Criteria panel on the query will hide the blank cells in that field.

    The next step I am doing is creating another query based on the previous query. In this query I concatenating different fields. The formula I am using:

    APN: IIf([ISRAILROAD]="Y",9 & [UCN] & [TAX_RATE_AREA],9 & [UCN] & "00001")

    Some fields are numbers and some are text but in total they have to be 10 characters long for an APN code.

    When I do this query I then get a problem on some of my records since I am concatenating blank cells from the UCN field which ruins my final result table.

    I tried using different ways to incorporate the Criteria but nothing seems to work.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Concatenation of numbers and text but only to display certain values?

    If you have a blank record (there are no cells in Access--that is a spreadsheet term) in a field, what would you like your concatenation to do? How about some examples of what the data you have and what it would look like currently and what you want it to look like. You have not supplied enough information for a clear response.

    If you are using the results of the previous query and in that query you are getting only populated records then I suspect that you may have not saved the query with the proper criteria. Recheck your original query and suggest you post each of your SQL statements for analysis.
    Last edited by alansidman; 08-19-2014 at 08:25 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Display data in whole numbers instead of decimal values
    By rachnacare in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-26-2013, 11:18 AM
  2. Formula for concatenation of text values from one table to another table.
    By dionardrhey in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-11-2012, 03:34 AM
  3. [SOLVED] Excel 2007 : TEXT and display of rounded numbers
    By dip11 in forum Excel General
    Replies: 3
    Last Post: 06-12-2012, 09:57 AM
  4. IF/AND formula to display numbers and text
    By Greed in forum Excel General
    Replies: 0
    Last Post: 02-10-2012, 04:55 PM
  5. Format numbers to display as text
    By JackiG in forum Excel General
    Replies: 1
    Last Post: 03-29-2005, 08:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1