Results 1 to 3 of 3
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Cancel close make form invisible

    Hi everyone



    I have made a form which I want the staff to only make visible on close instead of closing the form so in the unload event I have made cancel = true and then the form.visible = false

    this way when they click to open the form all I do is put the form to .visible (and it stays open the whole time even when they think they have closed it)

    This helps with loading speed from their view - however.

    When I have made the form invisible it is still open. I go to right click into design view and... nothing happens. The form won't be visible in design view.


    Is there a way around this? Have I missed something?

  2. #2
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    sorted with this code in the unload

    Code:
    If Me.CurrentView = 1 And Me.Visible = True Then
    Cancel = True
    Me.Visible = False
    End If

  3. #3
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    and this in the form load

    Code:
    If Me.CurrentView = 1 And Me.Visible = False Then
        Me.Visible = True
    End If

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

Similar Threads

  1. Replies: 6
    Last Post: 08-22-2013, 05:35 AM
  2. Make foreign key on subform invisible in form view
    By snowboarder234 in forum Forms
    Replies: 1
    Last Post: 04-04-2013, 01:06 PM
  3. How to make a field invisible in form view?
    By snowboarder234 in forum Forms
    Replies: 3
    Last Post: 10-25-2012, 12:43 PM
  4. Make result invisible in Form?
    By RachelBedi in forum Forms
    Replies: 1
    Last Post: 10-23-2012, 09:12 AM
  5. Replies: 1
    Last Post: 10-05-2011, 04:36 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