Results 1 to 2 of 2
  1. #1
    pinecrest515 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2010
    Posts
    31

    Interesting Problem


    Dear Forumers,

    Thank you again for the help so far. I am relatively new to Access but need to get some things done fast, so appreciate the help.

    Suppose I want to update/modify a table called Sheet1 based on results from queries Query1, Query2, and Query3.

    Here is what I want to do:
    1) Add a new column to Sheet1, called Code.

    ALTER TABLE Sheet1 ADD COLUMN Code Text(10)

    2) Run Query1. Then update newly created Sheet1 Column called 'Code'...so that for all Sheet1 recordes returned by Query1, set Code = 'Green'.

    3) Run Query2. Then update Code column in Sheet1 so that for all records returned by Query2, set Code = 'Green'.

    4) Run Query 3. Query 2 and Query 3 may return the same records in some instances. If record falls under Query 3 BUT NOT in Query 2, then set Code = 'Yellow' for record. Else, do nothing.

    5) For all records in Sheet1 not in Query1, Query2, and Query3, set Code = 'Red'.

    How can I go about accomplishing steps 1-5 above?

    Much Appreciated!

    I don't have much experience with VB on Access, so any detailed pointers would be appreciated.

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    you questions are always INTERESTING.
    I am interested in you questions.

    but maybe i am not good enough to solve your problem, and make you keep posting new threads.

    So i am not going to respond to this thread so that other others can help you out.

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

Similar Threads

  1. Help! Another Interesting Problem
    By pinecrest515 in forum Queries
    Replies: 14
    Last Post: 12-15-2010, 01:53 PM
  2. Help! Very interesting query problem
    By pinecrest515 in forum Queries
    Replies: 5
    Last Post: 12-15-2010, 11:46 AM
  3. Help with Query!!! (Interesting Problem)
    By pinecrest515 in forum Queries
    Replies: 4
    Last Post: 12-09-2010, 08:20 AM
  4. Interesting Query Problem
    By Lockrin in forum Queries
    Replies: 7
    Last Post: 08-23-2010, 01:56 PM
  5. Interesting Issue With Report
    By dynamictiger in forum Reports
    Replies: 1
    Last Post: 04-15-2010, 05:40 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