Results 1 to 4 of 4
  1. #1
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481

    Text String.

    Hey there,

    I have sentence in note so in query i want to shorten this one like:

    "There was a problem in the line # 2."

    how we can shorten this by query and results shud be?

    "there was problem"



    thanks

    zee

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    I think you can do this if you use an IIF statement in your query.

    For example, you could use something like this:
    Select Field1, Field2, IIF([Note] = "There was a problem in the line # 2.", "there was problem", [Note]) AS ModifiedNote From TableName

    I hope this helps!

  3. #3
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Hey, thanks but it is not imp every time noe shud be " There was a problem in Line # 2" can be some other text.

    how to shorten the names in access?

    Qasim ali hadier ali

    so i just want to keep 1st two text like " qasim ali".

    how?

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Select Field1, Field2, Left([CourseDescription],9) AS ModifiedNote From TableName

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

Similar Threads

  1. text string
    By cbrsix in forum Reports
    Replies: 4
    Last Post: 10-27-2011, 02:24 PM
  2. Manipulating text string
    By genemd in forum Queries
    Replies: 4
    Last Post: 10-21-2011, 05:04 AM
  3. Breaking the string into Text / Number
    By Amerigo in forum Queries
    Replies: 15
    Last Post: 05-20-2011, 03:29 PM
  4. Replace a string/text in ms-access db
    By anziga in forum Queries
    Replies: 4
    Last Post: 12-31-2010, 06:40 PM
  5. Text string formatting
    By DanW in forum Forms
    Replies: 2
    Last Post: 11-02-2009, 11:11 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