Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919

    Works on A2003 & A2010 but fails on A2007

    I have a form "DirectoryItems" that contains a sub-form "FamDirItems" whose container name is "ContFamDirItems". The code below gets control when the user clicks on the label "Picture ID" you see in the design view of the "DirectoryItems" form (screen-shot below).



    Code:
    Private Sub ImageName_Click()
    Select Case (SortColumn)
        Case ""
             Highlight ("ImageName")
             Me.ContFamDirItems.Form.RecordSource = "QPicsNoDir"
             'Me.RecordSource = "QPicsNoDir"
        Case "ImageName"
             Un_Highlight ("ImageName")
             Me.ContFamDirItems.Form.RecordSource = "QDirOrPics"
             'Me.RecordSource = "QDirOrPics"
             SortColumn = ""
        
        Case "lblImageFound"
             Un_Highlight ("lblImageFound")
             Highlight ("ImageName")
             Me.ContFamDirItems.Form.RecordSource = "QPicsNoDir"
             'Me.RecordSource = "QPicsNoDir"
    End Select
    
    Debug.Print Me.ContFamDirItems.Form.RecordSource
    Me.ContFamDirItems.Form.Requery
    
        With Me.RecordsetClone
            Debug.Print .RecordCount
            If .RecordCount = 0 Then MsgBox "No image names found that are un-accompanied by Directory checks."
        End With
    
    End Sub
    The path taken in the above code is via Case "". The RecordSource is verified in that it displays "PicsNoDir" in the immediate window as expected. The statement Me.ContFamDirItems.Form.Requery you see executes as expected in A2003 and A2010 BUT NOT in A2007. No error is given. The record count value remains that of the initial load of the form at 236 records. Had the Requery run properly, the count would be 110 records. The display of the form "Directory Items" essentially shows an empty sub-form.

    Below is a screen-shot of the design view of the form "Dirrectory Items", which hopefully will help make sense of what I'm saying here.

    Is there some peculiarity about the Requery statement when run in A2007?

    Thanks,
    Bill
    Click image for larger version. 

Name:	DesignPic.jpg 
Views:	17 
Size:	133.8 KB 
ID:	13628

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    I don't use the .Form qualifier.

    Me.ContFamDirItems.Requery
    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
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    No change after dropping the .Form qualifier . The client's A2007 system recently updated (8/14/13) to SP3.

    Further evidence that the Requery isn't happening is that the sub-form FamDirItems has a Current Event that doesn't fire when running the code in Debug, but clearly does when running the app in A2003 or A2010.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    What are the OS's for each computer?

    Have you tested on another computer running 2007?
    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. #5
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    The A2003 and A2010 as well as the A2007 are all Win 7 64Bit, Office installed as 32Bit on each of those machines.

    Unfortunately, I only have the one A2007 machine.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    If you want to provide db, I will test on 2007. Describe the steps I must follow.
    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
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    I'd be happy to do that, but the necessary elements add up to quite a bit, like about 270MB.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    Even after compact & repair and zipped? Without data or very few records?

    If still too large can upload to fileshare site like Box.com and post link to ZIP (please) file.
    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
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    The size issue relates to the size of an image library. If I try to rig a subset of that, I'm afraid it might muddy the water so much as to make debugging difficult.

  10. #10
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    I'm a dummy............. I can send you a release package that won't be any larger than about 15MB. However, I can't post that publicly because of proprietary reasons. Can I send a zip file to your email address?

  11. #11
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    You can send me your EMA at GraeagleBill@gmail.com so as to protect it.

  12. #12
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    Zip is only 6,898KB.

    We can still post whatever resolution we find privately.

  13. #13
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,919
    You can upload to Box.com and then send me the link by PM. You can delete the Box.com file later if you want.
    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.

  14. #14
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    Okay, the file has been uploaded to Box.com. What do you mean "link by PM"?

  15. #15
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    By the way, I uploaded the zip file to the A2007 machine so I could test the package on the "failing" A2007 machine..............it does in fact fail.

    Now I just need to know what you meant by "send me the link by PM". "Private Mail"?

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 21
    Last Post: 08-29-2013, 11:08 AM
  2. Replies: 0
    Last Post: 07-31-2013, 08:08 AM
  3. Query works but VBA fails
    By dumbledown in forum Queries
    Replies: 11
    Last Post: 03-16-2012, 10:37 AM
  4. A2007 Runtime on same machine as A2003
    By jhollingsh615 in forum Access
    Replies: 4
    Last Post: 05-24-2011, 12:17 PM
  5. Replies: 0
    Last Post: 04-15-2010, 01:34 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