Results 1 to 3 of 3
  1. #1
    Naveed Raza is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2012
    Posts
    4

    Need Help to get automatic text for particular selection

    Hi All,I Need small help in Access Table.I Pull small data from excel to access and in Table "Sub Activity" Field is thr if in this filed "Exception","Random Fee" and "Missing Fee" is thr then in Last Field automatic "Exception" should come and if "Correction" is thr then "Correction" shd come like this if "Plant Check" and "Plats" then "Plats" shd come.as i very new to access and i unable resolve this and i am sure anyone help me out from this situation. Thanks in Advance !Thanks - Naveed.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Please provide more info. What exactly are you trying to do? What is your database about?
    What exactly is the issue/problem you are having?
    Please provide an example to show what is happening to what, and what you want to happen.

    We can not help you unless we understand your issue/problem.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Cannot do calculations in Access 2007 tables. Calculate data in queries or on forms or reports.

    If you want to save the calculated results to table, will require code. Usually not a good idea to save calculated results. Calculate data when needed.

    Expression could be:

    IIf([Sub Activity]="Correction", "Correction", IIf([Sub Activity]="Plats", "Plats", "Exception"))

    If you put the expression in a textbox ControlSource property, be sure to prefix with = sign.

    Search Access Help or Google for guidance on constructing expressions.
    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: 9
    Last Post: 07-20-2015, 10:55 AM
  2. Populate a text box based on a combobox selection?
    By Richie27 in forum Programming
    Replies: 4
    Last Post: 04-25-2012, 08:00 AM
  3. Replies: 8
    Last Post: 01-25-2012, 02:07 PM
  4. Replies: 9
    Last Post: 05-30-2011, 01:52 PM
  5. Replies: 2
    Last Post: 05-05-2010, 02:52 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