Help in building an maketable or append query in Access 2007

Posted on 2011-10-05
Last Modified: 2012-08-13
I am creating a new database for our company.
My situation is that every day, we get a list of items that are failing. Sometimes we need to watch these items for a few days.

What I want to do is:
(This is based off of the account number and status)
What I want to do is look at the account number and status. If the account number is found, look at the status. IF the status is not closed, then add the info with the CURRENT incident number into the issues table. If the Account is closed, then create a NEW incident, then add the info into the issues table.
If the account is not found, then create a new incident. and add to the issues table
I will submit my database later as I am making a few little changes.

I am looking for any ideas on the concept here? Can you do an IF OR in a SQL?

Question by:Bruj
    LVL 14

    Accepted Solution


    You can do an if, else if but not an if or.



    Author Closing Comment

    I was hopeing for some samples or something, but it got me pointed in the correct direction (I think)
    Looks like I will be reading in one line at a time and then deterning if it is now or a repeat


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
    Read about achieving the basic levels of HRIS security in the workplace.
    Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now