Results 1 to 2 of 2
  1. #1
    ortizimo is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jun 2017
    Location
    FL
    Posts
    88

    Cancelling Selection Gets Pic Removed

    got this option to select a pic from the hdd but when cancelling that process the already selected pic gets removed and I end up having to search for that one again...here's the code...

    Private Sub Browse_Click()


    Me.ImagePath = LaunchCD(Me)
    Me.Games.Enabled = True
    Me.ConsoleName.Enabled = True
    Me.Copy.Enabled = True
    Me.Condition.Enabled = True
    Me.PricePaid.Enabled = True
    Me.Remarks.Enabled = True
    Me.Refresh
    End Sub

    I thought I needed to do an "If Dirty then Undo" but that doesnt work...it disables the button...any help is appreciated. Thanks.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    I assume that function has the browsing code in it. Try declaring and setting a string variable instead of the image path. Only set the image path if the variable gets set with a path.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 3
    Last Post: 05-15-2017, 03:46 AM
  2. Replies: 2
    Last Post: 10-22-2014, 11:37 AM
  3. Replies: 2
    Last Post: 04-09-2014, 12:21 AM
  4. Cancelling the NotInList event
    By Remster in forum Programming
    Replies: 12
    Last Post: 11-21-2010, 10:12 AM
  5. Cancelling a query
    By P5C768 in forum Queries
    Replies: 0
    Last Post: 09-11-2009, 04:25 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