Results 1 to 4 of 4
  1. #1
    solocdm is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    2

    SQL Access in 2010 with JOIN databases in Windows 7

    The following is the SQL query created for two INNER JOIN databases. I need to force the Membership Record Cleanup child database to skill down each record as I extract the information then move to the next parent record and start again all the while gathering information from the parent. The parent is working fine when gathering information because Access is by default skipping down the records ... maybe it needs a UNION statement? Advice is welcome!

    SELECT IIf([Membership Record Cleanup.Household Position]="Head of Household",[Membership Record Cleanup.Preferred Name],"") AS HeadOfHouse, IIf(IsNull([Membership Record Cleanup.Household Position]),"",IIf([Membership Record Cleanup.Household Position]="Spouse",[Membership Record Cleanup.Preferred Name],"")) AS Spouse, IIf(IsNull([Membership Record Cleanup.Address - Street 1]),"",[Membership Record Cleanup.Address - Street 1]) & IIf(IsNull([Membership Record Cleanup.Address - Street 2]),""," " & [Membership Record Cleanup.Address - Street 2]) AS StreetAddress, IIf(IsNull([Membership Record Cleanup.Address - City]),"",[Membership Record Cleanup.Address - City]) & IIf(IsNull([Membership Record Cleanup.Address - State]),"",", " & [Membership Record Cleanup.Address - State]) & IIf(IsNull([Membership Record Cleanup.Address - Postal Code]),""," " & [Membership Record Cleanup.Address - Postal Code]) AS FinalStreetAddress, IIf([Steps.Step 1]="Yes","Done","________") AS StepOne, IIf([Steps.Step 2]="Yes","Done","________") AS StepTwo, IIf([Steps.Step 3]="Yes","Done","________") AS StepThree, IIf([Steps.Step 4]="Yes","Done","________") AS StepFour, IIf([Steps.Step 5]="Yes","Done","________") AS StepFive, IIf([Steps.Step 6]="Yes","Done","________") AS StepSix, IIf([Steps.Step 7]="Yes","Done","________") AS StepSeven, IIf([Steps.Step 8]="Yes","Done","________") AS StepEight
    FROM Steps INNER JOIN [Membership Record Cleanup] ON Steps.[Head of House] = [Membership Record Cleanup].[Head of House];

  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,930
    No idea what you mean by 'skill down'.

    I have no idea what you are trying to do.
    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
    solocdm is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2014
    Posts
    2

    SQL Access in 2010 with JOIN databases in Windows 7

    Quote Originally Posted by June7 View Post
    No idea what you mean by 'skill down'. I have no idea what you are trying to do.
    Skill -> Skip. I need the SQL script to move down the parent records and stop at each child record to pull the info as it moves through the parent directory until finished. What I was able to surmise from the text manual was using select for the parent and select for the child as a subroutine to pull the information out and display as it moves down the databases that are JOINed. I also noticed that I need to create a separate SQL for each query. Would that be more fitting?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I've never thought of queries as 'moving down' and 'stopping'. I still don't know what you are trying to do. I don't know your data nor what manipulation you are trying to accomplish - the posted query is just too hard to read.

    If there are several 1-to-many related tables, then possibly need subqueries. Or build report/subreport arrangement.

    Advise no spaces or special characters/punctuation (underscore is exception) in naming convention.
    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. Microsoft Access 2010 Runtime on windows 8
    By Guy Tal in forum Access
    Replies: 1
    Last Post: 02-16-2014, 10:59 AM
  2. size of databases in Access 2010
    By AzizSader in forum Forms
    Replies: 3
    Last Post: 11-19-2013, 11:41 AM
  3. Windows 7, Access 2010. Nav Pane, Ribbon
    By redbull in forum Programming
    Replies: 5
    Last Post: 08-03-2012, 12:00 PM
  4. Windows 7 X64 ODBC Driver and Access 2010
    By tcheck in forum Access
    Replies: 6
    Last Post: 11-01-2011, 08:22 AM
  5. Access 2010 / Windows 7 conflicts?
    By SteveF in forum Access
    Replies: 2
    Last Post: 07-22-2011, 03:37 PM

Tags for this Thread

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