Results 1 to 11 of 11
  1. #1
    JL2309 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    18

    New query record disappears after saving

    When I add a new record to an existing query and save, the underlying tables populate - but when I close and re-open the query the record is gone. So it is now showing up across the (8) connected tables but not in the query results or the connected report. Any help much appreciated!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    How exactly do you add a new record to a query? Can you show us?

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    How do you use one query to input new records into 8 tables?

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

  4. #4
    JL2309 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    18
    Click image for larger version. 

Name:	DBscrnshot.jpg 
Views:	5 
Size:	117.4 KB 
ID:	21941Screenshot attached...I added the new record on the bottom line and filled in the relevant fields going across. The tables populated with the correct information but upon re-opening the query the new record was gone. I also tried populating the individual tables in the database on an earlier try, which then do not show up on the query.
    Attached Thumbnails Attached Thumbnails DBscrnshot.jpg  

  5. #5
    JL2309 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    18
    I am not trying to populate 8 tables...I am saying that 8 tables are included in the query, which seem to populate with the information just fine, but I am trying to add a new record to my report. This query is the report record source.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Data entry/edit should be done through forms. One form for one table.

    Post the query SQL statement. If it uses INNER JOIN that might explain why your new record does not show. INNER JOIN requires related records in both tables.
    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.

  7. #7
    JL2309 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    18
    Query SQL statement:

    SELECT tbl_ID_Names.FEMA_NASNo, tbl_ID_Names.FEMAName, tbl_ID_Nos.CASNo, tbl_Synonyms.LatinName, tbl_Synonyms.BotanicalName, tbl_Synonyms.Synonyms, tbl_ID_Nos.FDANo, tbl_ID_Nos.COE, tbl_Isolation_Purification.GeographicalSource, tbl_Isolation_Purification.SourceMaterial, tbl_Isolation_Purification.Isolation_Manufacture, tbl_Isolation_Purification.PercentYield, tbl_Analysis_Exposure.Appearance, tbl_Analysis_Exposure.AlcoholSolubility, tbl_Analysis_Exposure.WaterSolubility, tbl_Analysis_Exposure.Solubility_OtherSolvents, tbl_Analysis_Exposure.MajorMarkerConstituents, tbl_Analysis_Exposure.[PerCapitaIntake_μg/person/day], tbl_HistoryOfUse.HistoryofUse, tbl_HistoryOfUse.FirstKnownDate, tbl_HistoryOfUse.IndustryGeneralUse, tbl_PhysicalData.RIFM_OpticalRot20degC, tbl_PhysicalData.RIFM_SpGravity20degC, tbl_PhysicalData.RIFM_RefIndex20degC, tbl_PhysicalData.FCC_OpticalRot20degC, tbl_PhysicalData.FCC_SpGravity20degC, tbl_PhysicalData.FCC_RefIndex20degC, tbl_PhysicalData.IOFIMIS_OpticalRot20degC, tbl_PhysicalData.IOFIMIS_SpGravity20degC, tbl_PhysicalData.IOFIMIS_RefIndex20degC, tbl_PhysicalData.OTHER_OpticalRot20degC, tbl_PhysicalData.OTHER_SpGravity20degC, tbl_PhysicalData.OTHER_RefIndex20degC, tbl_PhysicalData.SourceNotes, tbl_ID_Nos.ISO, tbl_PhysicalData.ISO_OpticalRot20degC, tbl_PhysicalData.ISO_SpGravity20degC, tbl_PhysicalData.ISO_RefIndex20degC, tbl_Poundage.[1995Poundage_lbs], tbl_Poundage.[2005Poundage_lbs], tbl_Poundage.[2010Poundage_lbs], tbl_Analysis_Exposure.SPET_mg_person_day, tbl_PhysicalData.Industry_OpticalRot20degC, tbl_PhysicalData.Industry_SpGravity20degC, tbl_PhysicalData.Industry_RefIndex20degC, tbl_Analysis_Exposure.FEMAmarkercompounds
    FROM ((((((tbl_ID_Names INNER JOIN tbl_ID_Nos ON tbl_ID_Names.ID = tbl_ID_Nos.ID) INNER JOIN tbl_Synonyms ON tbl_ID_Names.ID = tbl_Synonyms.ID) INNER JOIN tbl_Isolation_Purification ON tbl_ID_Names.ID = tbl_Isolation_Purification.ID) INNER JOIN tbl_Analysis_Exposure ON tbl_ID_Names.ID = tbl_Analysis_Exposure.ID) INNER JOIN tbl_HistoryOfUse ON tbl_ID_Names.ID = tbl_HistoryOfUse.ID) INNER JOIN tbl_PhysicalData ON tbl_ID_Names.ID = tbl_PhysicalData.ID) INNER JOIN tbl_Poundage ON tbl_ID_Names.ID = tbl_Poundage.ID;



    I'm the only one who uses this database and so would prefer to enter data on my tables directly rather than building entire forms just for me. However, when I enter the data in the tables it is not showing up in the query.

    Thanks again, this is for work and greatly appreciated.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Yep, I see INNER JOIN used for all links. Change to an outer (LEFT or RIGHT) JOIN: "Include all records from tbl_ID_Names and only those from {other table} that match"
    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.

  9. #9
    JL2309 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    18
    Sorry, I have never used VBA...I am vaguely familiar with joins but don't understand where to make changes. Where does this text go? What should the full SQL statement look like to bring in the new record?

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    This is not VBA, it is query design.

    Open query in design view, click on the line that links the tables, choose appropriate join type.
    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.

  11. #11
    JL2309 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    18
    Thank you so much!! Sorry for misunderstanding, I see what you mean now for next time.

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

Similar Threads

  1. Replies: 1
    Last Post: 07-29-2014, 04:58 PM
  2. Replies: 4
    Last Post: 12-06-2012, 10:03 AM
  3. Record disappears from report when new page is forced
    By willi1972 in forum Programming
    Replies: 1
    Last Post: 06-09-2012, 04:50 PM
  4. Saving Record
    By mwabbe in forum Programming
    Replies: 12
    Last Post: 09-15-2010, 12:09 PM
  5. record saving twice in table
    By ds_8805 in forum Forms
    Replies: 15
    Last Post: 04-14-2010, 07:16 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