Results 1 to 2 of 2
  1. #1
    TheSpecialist is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2015
    Location
    Georgia
    Posts
    47

    How would I add another table to see the moon phase to the table below

    This is what I have on my sql now. I want to to add my MoonPhaseTable to this how do I do it what would be my sql

    PARAMETERS [Enter Number:] Text ( 255 );


    SELECT T1.YourNumber AS [Operative Number], T1.YourDate AS [Operative Date], T2.YourNumber AS [Related Number], T2.YourDate AS [Related Date]
    FROM YourTable AS T1, YourTable AS T2
    WHERE (((T1.YourNumber)=[Enter Number:]) AND ((T2.YourDate)>=[T1].[YourDate]-2 And (T2.YourDate)<=[T1].[YourDate]+2 And (T2.YourDate)<>[T1].[YourDate]))
    ORDER BY T1.YourDate, T2.YourDate;

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Have no idea. Don't know your data structure and relationships.

    Why don't you do it with the query designer?
    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. design phase ... question on multiple entries from same table
    By sbrockett751 in forum Database Design
    Replies: 2
    Last Post: 03-13-2013, 03:13 PM
  2. Replies: 4
    Last Post: 08-30-2012, 07:58 PM
  3. Replies: 8
    Last Post: 03-22-2012, 08:48 AM
  4. Replies: 2
    Last Post: 08-01-2011, 11:35 PM
  5. Replies: 2
    Last Post: 10-27-2009, 07:09 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