Consulting

Results 1 to 2 of 2

Thread: Refresh connection then close

  1. #1

    Refresh connection then close

    Hi,

    I have a userform that refreshes data from Access. however it leaves the connection open

    "thisworkbook.refreshall."

    How do I close the connection after this refresh is complete?

  2. #2
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    You need to look at the connection properties. First make sure it doesn't refresh in the background - otherwise your code will carry on while the refresh is still happening. Second, make sure it's not set to lock the database.
    Be as you wish to seem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •