Results 1 to 5 of 5
  1. #1
    g4tv4life is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2014
    Posts
    50

    Continous form, not updating properly?

    Hey everyone, I have a inventory program with pictures but I have a small bug I can't solve


    First off, its a continous form where by double clicking it runs this code:
    Code:
    Private Sub Image41_DblClick(Cancel As Integer)
     If Me.Command52.Visible = False Then
      Me.Box55.Visible = True
     Me.Command52.Visible = True
    Me.Command53.Visible = True
     Me.Command54.Visible = True
      Me.Combo50.Visible = True
        Me.Combo50.Value = ""
      Me.Combo50.Value = Me.Category.Value
     End If
    End Sub
    This Code, reveals a little form for selecting a photo, The problem is the bolded line.
    I'm trying to autofil a combo box from a combo box on the record. Problem is, its always
    One behind (I.E. Double click one that the combo says PPE it works fine (for the first time, do another record with COMMUNICATIONS as it, it stays PPE until I double click it again, then it updates.)

    I've tried both Me.Category.Value and Me.Combo70.Value both do the same thing.

    Any Idea's

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,972
    Why does this value need to be duplicated?

    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.

  3. #3
    g4tv4life is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2014
    Posts
    50
    Its more of a convenience thing, I use that value to create the stored path for the image, by having that code working the person (mainly me) doesn't have to change the combo box every time when attaching a new image.

  4. #4
    g4tv4life is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2014
    Posts
    50
    Solved it, The clicking of the image didn't set the record as the current one, so it was using the 1st record's value. Solved by putting a transparent button over the image, which moved the focus to the current record.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,972
    Not sure what you mean by 'change the combo box every time'. What is selected by combobox? What do you mean by 'attaching new image'? Are you embedding images in attachment field or just saving path to external image?
    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. continous form cant bind a field
    By MIchael Briggs in forum Forms
    Replies: 2
    Last Post: 11-26-2013, 10:37 AM
  2. Continous Form with Combo Boxes
    By dhogan444 in forum Forms
    Replies: 3
    Last Post: 07-18-2012, 08:04 AM
  3. Looping through records in a continous form
    By accessnihon in forum Forms
    Replies: 3
    Last Post: 01-04-2012, 01:04 AM
  4. Checkbox in continous form
    By senthilrg in forum Access
    Replies: 11
    Last Post: 12-05-2009, 08:49 AM
  5. Horitontal Continous Form?
    By Lawrence in forum Forms
    Replies: 1
    Last Post: 07-21-2009, 03:06 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