Results 1 to 4 of 4
  1. #1
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453

    intermittant code??

    Hi



    ongoing database which exhibits an intermittant issue

    I call a form showing limited details of a record. On that from is a field which has an on click event as below

    Code:
    Private Sub Surname_Click()
    DoCmd.OpenForm "frm_Detail", , , "GraveID = " & Me.GraveID
    End Sub
    this calls a form showing full details.

    However is it intermittant


    some times it opens and shows the full details and some times is opens to a greyed out form with just the form name top right

    <img src="https://www.accessforums.net/attachment.php?attachmentid=24835&amp;stc=1" attachmentid="24835" alt="" id="vbattach_24835" class="previewthumb">



    has anyone any ideas why?



    thanks



    Ian
    Last edited by Jen0dorf; 06-07-2016 at 03:35 AM. Reason: removed html tags

  2. #2
    John_sc is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Location
    South Carolina
    Posts
    34
    I can not see your image for some reason. In your other post I only see the word Detail in the top left.

    Is you database being accesses by more than one person at a time? if someone is accessing it, and someone else then tries to access it at the same time odd things can happen.

  3. #3
    Jen0dorf is offline Competent Performer
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    UK
    Posts
    453
    Hi

    that was the point - I just explained it badly- I only get the white box with the word detail in the top left.

    I re enable the close option and that appears as well. I also re enabled the bottom bar and it shows the search box but in the record count it shows no record count.

    really not sure how to trouble shoot this.

    thanks

    Ian

    If when it happens I close the window using the X and then try again it all works as I expect.

    It's on my development machine so I am the only one using it.

  4. #4
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    The problem might be that both forms are trying to display the same record from the same table at the same time, and if the first form locks the record (maybe because you edited a field), then the second one can't open to that record. Not sure if this will work, but try basing the first form on a query, rather than the table itself.

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

Similar Threads

  1. Replies: 20
    Last Post: 10-13-2015, 09:05 AM
  2. Replies: 3
    Last Post: 10-16-2014, 08:49 AM
  3. Replies: 1
    Last Post: 05-04-2013, 12:19 PM
  4. Intermittant VBA Code Issue
    By eking002 in forum Forms
    Replies: 9
    Last Post: 07-10-2012, 02:20 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