Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    jagrok is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2014
    Posts
    19
    Thank you working perfect.

    What do you means, come from ?

    This Uniq ID is imported from xls form, and might be replaced by main ID of company which is 26200321 GREEN PL a.b.c.

    uniq_id; name_of_company


    37500152 White Video ltd
    26600328 Brown Serwis Sp. z o.o.
    26800130 White Goods GmbH
    26900597 Yellow Partner-Service
    26101704 RED,a.b.c.
    26300126 ORANGE a.b.c.
    26500315 Black Bobby - company Bobby
    26200321 GREEN PL a.b.c.
    26300412 GREEN PL a.b.c. like - partner
    26400275 GREEN PL a.b.c.- Berlin 3
    26100276 GREEN PL a.b.c.- Berlin 4
    26201020 GREEN PL a.b.c.- Berlin 8
    26400052 Purple mountain center

    And i think it could be

    If ID is
    26300412;26400275;26400276;26201020 then replace with 26200321

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Do you want to replace the actual original raw data with these calculated values? Or just do the calcs in query:

    SELECT *, IIf([name_of_company] LIKE "GREEN PL a.b.c.*", Left([name_of_company],15), [name_of_company]) AS NewName, IIf([name_of_company] LIKE "GREEN PL a.b.c.*", 26200321, uniq_id) AS NewID FROM GFW;
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. if statment
    By ismailkhannasar in forum Access
    Replies: 3
    Last Post: 01-31-2013, 06:48 AM
  2. if statment or case statment?
    By whojstall11 in forum Forms
    Replies: 4
    Last Post: 07-09-2012, 01:44 PM
  3. Replies: 3
    Last Post: 06-07-2012, 07:05 AM
  4. Like statment
    By brew in forum Programming
    Replies: 2
    Last Post: 12-01-2011, 03:23 AM
  5. SQL statment structure
    By oss_ma in forum Programming
    Replies: 1
    Last Post: 05-13-2007, 02:08 AM

Tags for this Thread

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