Results 1 to 14 of 14
  1. #1
    Timber is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2015
    Posts
    7

    Forms showing as reports in expression builder

    Hi,
    I am new to Access and have the following problem.


    Under the “WorksSubForm” I have fields “SubContract” & “Step” I am to create a query on the step in which the filtering criteria is value selected in the subcontract. I cannot drill further through the “WorksSubForm” on the Expression Builder; as shown in the attachment, the form is being represented by a report icon instead a form. Please enlighten me on why this is happening and how to make it work. By the way, the “LabourHoursSubForm” is the last subform under “WorksSubForm”.
    Click image for larger version. 

Name:	Capture.JPG 
Views:	34 
Size:	30.6 KB 
ID:	21038

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    are you sure you do not have reports with the same name as a form and assigned them to a subform control in error? - if you open up all Reports on the above screen what do you see there?

  3. #3
    Timber is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2015
    Posts
    7
    Thanks Ajax for your response. I am certain as i did not create any report yet. Expanding the "Reports" section shows "Loaded Reports" and "All Reports" however these items cannot be expanded anymore as there are no more sub items.

  4. #4
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    OK, sounds like you TeamDiary form has become corrupted in some way. Suggest rebuild from scratch.

  5. #5
    Timber is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2015
    Posts
    7
    sigh, that is what I'll probably end up doing. I'm just curious, does the problem have something to do with the fact that the forms are now basically in 4 levels (i.e. DailyDiary>Teamdiary>WorksSubForm>LabourHoursSubFo rm)?

  6. #6
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    I wouldn't think so, maximum number of levels is 7

    One other thing you can do is to decompile your code and then compact your db

    here is a link to how to decompile

    http://www.access-programmers.co.uk/...ight=decompile

  7. #7
    Timber is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2015
    Posts
    7
    Ok. Thanks a lot Ajax.

  8. #8
    Timber is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2015
    Posts
    7
    Update. I've redone the entire file from scratch but the problem persists. Please help.
    Last edited by Timber; 06-19-2015 at 11:20 PM. Reason: grammar

  9. #9
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    I am now away for a week with limited access to internet so regret someone else will need to help - if you don't get a response on this thread for a couple of days suggest you start a new thread, but provide a hyperlink back to this thread so you don't get all the same suggestions

  10. #10
    IrogSinta is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Jun 2015
    Posts
    103
    This is something we may have to look at to figure out. Can you upload a copy of the db with the problem forms? Just make sure to not include any private data any table.

    Ron

  11. #11
    Timber is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2015
    Posts
    7
    Click image for larger version. 

Name:	Capture.JPG 
Views:	18 
Size:	156.7 KB 
ID:	21060

    Hi Irog. Thanks for replying. I have attached a screenshot of the one completely redone file. I have changed the names a bit. This is the file (i have to put it in zip because the current size is 1.4MB and it exceed the limit of this forum):A.1.zip

  12. #12
    Timber is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2015
    Posts
    7
    Any ideas why this is happening? Please help guys.

  13. #13
    IrogSinta is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Jun 2015
    Posts
    103
    Hi Timber,
    Sorry about the delay in getting back to you but I somehow missed your response last week. If you hadn't followed up, I would have missed this completely. Anyway, I confirmed what you said about not being able to see anymore details in the expression builder once you've gone 3 levels deep. I even created a blank database with just 3 forms and a textbox in the innermost form and I could not see the textbox either in the expression builder because the innermost form shows up with a different icon and no details.

    Click image for larger version. 

Name:	Capture.PNG 
Views:	13 
Size:	53.8 KB 
ID:	21122

    I know in Access 97, you could only go 2 levels deep but my understanding was that you could go 7 levels in Access 2013. I will continue to research this but right now you'll just have to manually enter the reference to your control the long way. So if you want to refer to WorkHours from a query , you would have to type in:
    Forms![frmRptReportDate]![subfrmRptTeam].Form![subfrmRptTeamWork].[Form]![subfrmDetProductiveHours].[Form]![WorkHours]

    Hopefully I or someone else will have a better answer later on.

    Ron

  14. #14
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I seldom use the expression builder but I've never built forms more than 3 deep. Also my understanding 7 levels is possible and think I have seen 5 used. Seems to be a bug in the expression builder.
    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. Replies: 2
    Last Post: 11-20-2012, 03:21 AM
  2. Expression builder help
    By jigg14 in forum Forms
    Replies: 1
    Last Post: 03-19-2012, 09:47 AM
  3. Expression Builder not there
    By schnuber in forum Access
    Replies: 1
    Last Post: 02-17-2012, 01:17 AM
  4. Expression Builder in Access Reports
    By csland in forum Access
    Replies: 1
    Last Post: 08-22-2011, 08:00 AM
  5. Expression Builder or VB ... Help
    By Adynn in forum Access
    Replies: 0
    Last Post: 06-03-2011, 09:51 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