Results 1 to 3 of 3
  1. #1
    scamper is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    3

    understanding access queries

    I am new to working with access 2007, but I have extensively used oracle, sql server, and nonstop sql relational database.
    I am trying to understand several queries that call each other.
    When I run some queries and load some data into the access 2007 database, the queries run correctly. However when I clear out the 'current month table' of 'now' what was the previous months data and run the query, nothing is selected. The highest level query has some hard coded dates in them. I went and changed the data ranges in the query and nothing is selected.
    From what I have seen of the queries, they look like subqueries in the other databases.
    Thus to solve my problem can you tell me what you would recommend to solve the problem?


    1. Should I post the queries on this forum?
    2. Is there a way to 'debug' the sql?
    3. I do not believe any VBA code has been written. If there is VBA code that has been written, can you tell me how I would look for the VBA code?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    You can show query statements in post or attach the project.

    Debug Access objects (tables, queries, forms, reports, macros) by exploring them when something goes wrong. Refer to link at bottom of my post for tutorial on VBA debug techniques.

    Can you see the full ribbon and Navigation pane when you open the project? Click Database Tools > Visual Basic is one way to open the VBA editor.
    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.

  3. #3
    scamper is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    3
    thanks for your answer
    Last edited by scamper; 01-03-2012 at 10:47 AM. Reason: found answer

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

Similar Threads

  1. understanding excel for access purposes
    By metokushika in forum Programming
    Replies: 1
    Last Post: 10-24-2011, 11:51 PM
  2. ADODB Recrodset (Understanding)
    By danny2000 in forum Access
    Replies: 3
    Last Post: 07-12-2011, 06:00 AM
  3. Help Understanding Join Syntax In Access
    By zephaneas in forum Queries
    Replies: 5
    Last Post: 06-22-2011, 08:32 PM
  4. Understanding afterupdate
    By MAM8433 in forum Access
    Replies: 8
    Last Post: 05-23-2011, 02:05 PM
  5. Understanding SQL Querys
    By jacobbiljo in forum Access
    Replies: 8
    Last Post: 11-17-2009, 05:17 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