Results 1 to 5 of 5
  1. #1
    mcchieftan is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    May 2017
    Posts
    3

    Failure to return data from multiple tables in subforms or select queries

    I have two tables, tblProducts and tblStockCheck that are related by the field code which is the primary key of tblProducts. The relationship is one to many as the same record form tblProducts may appear many times in tblStockCheck.

    frmStockCheck enables users to enter information into tblStockCheck. frmProducts displays records from tblProducts and appears on frmStockCheck as a subform, allowing users to verify that the item they have identified is correct and already exists in tblProducts.

    qryViewLastSC is a select query that displays all of the last month's stock check data from tblStockCheck accompanied by the related information from tblProducts based upon the field code.

    This was all working fine until last week when the related data stopped being displayed, either in frmStockCheck or qryViewLastSC. I've been reading everywhere but I can't get it to display again. Does anyone have any ideas?

    Thank you for your time,



    qryViewLastSC returning data from tblStockCheck but not tblProducts
    Click image for larger version. 

Name:	150717 Multi-table select query problem.png 
Views:	14 
Size:	15.8 KB 
ID:	28644



    qryViewLastSC in design view
    Click image for larger version. 

Name:	150717 Multi-table select query problem2.png 
Views:	14 
Size:	19.7 KB 
ID:	28645




    frmStockCheck failing to return related data from frmProducts
    Click image for larger version. 

Name:	150717 Multi-table select query problem3.png 
Views:	14 
Size:	20.5 KB 
ID:	28646

  2. #2
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    zip your database and attach it. Click the advanced option when making the post and manage attachments.

  3. #3
    mcchieftan is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    May 2017
    Posts
    3
    Hi! I managed to fix it by copy pasting tblProducts from a backup and I don't have a version of the buggy database
    I was hoping it was something obvious like an incorrect property.
    Thanks anyway

  4. #4
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Compact and repair could work in future.

  5. #5
    mcchieftan is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    May 2017
    Posts
    3
    Thanks for the suggestion

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

Similar Threads

  1. Replies: 3
    Last Post: 11-30-2016, 09:02 AM
  2. Adding data to multiple tables with subforms
    By mooserider2 in forum Access
    Replies: 3
    Last Post: 03-02-2015, 02:41 PM
  3. Replies: 10
    Last Post: 05-29-2013, 11:39 AM
  4. Replies: 1
    Last Post: 08-25-2011, 09:50 AM
  5. Replies: 0
    Last Post: 02-28-2011, 09:46 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