Page 3 of 3 FirstFirst 123
Results 31 to 35 of 35
  1. #31
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902

    You can calculate that field in the UNION.

    SELECT field, "Death" AS Source FROM Deaths
    UNION SELECT field, "Birth" FROM Births;
    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.

  2. #32
    Povo is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2017
    Posts
    14
    Ha, genius, that worked, thanks.

    My birth records have a birth date and/or a baptism date. The default field I use in my Union Query is birth year, but that returns a blank cell when I only have the baptism year. Is there a way I can say "use birth year, if blank use baptism year"?

    Ok, now I've just done something to confuse Access. I changed a header in by Births table which affected the Births Query and the Union Query - now both display "#Name?". I tried switching to design view to edit the query, but it won't let me. I tried changing the header in the table back to what it was and refreshing, but that hasn't worked...?

  3. #33
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    I suggest you learn some database/access concepts to help you with your project.
    See this series by Ronald Rost on youtube for an Introduction to Access.

    See links here for more on database and design. Included are links for an advanced VBA series by Steve Bishop.

  4. #34
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    If the field name that is changed was used in an expression in Births query, it is possible the expression will not autocorrect. It should autocorrect if just pulling the field into the query.

    Switch to SQL View to type the correct field name.

    UNION will not autocorrect at all.
    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.

  5. #35
    rapsr59 is offline Novice
    Windows XP Access 2000
    Join Date
    Jul 2014
    Location
    El Paso, TX
    Posts
    7
    Dates Are Dates. A Table Containing A Date Field Should Be Set To A Date. Example: BirthDate Field Should Be Set As A Date Field.

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need help designing a database
    By Aviator in forum Database Design
    Replies: 2
    Last Post: 03-15-2016, 05:24 PM
  2. Replies: 2
    Last Post: 07-31-2014, 05:45 AM
  3. database designing
    By tommyried in forum Database Design
    Replies: 1
    Last Post: 02-27-2014, 12:41 PM
  4. Designing Form (Beginner)
    By ccordner in forum Forms
    Replies: 1
    Last Post: 01-17-2012, 12:02 PM
  5. Help with designing database
    By nimalp in forum Access
    Replies: 6
    Last Post: 09-15-2010, 10:34 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