+ Reply to Thread
Results 1 to 2 of 2

Wait for update (refresh not working)

  1. #1
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Canada
    MS-Off Ver
    Office 2013
    Posts
    120

    Wait for update (refresh not working)

    In my database, I have set up a system to track switches and what is plugged on to each port. I have created a form based on the switch table query (refines it down to a specific office). All runs well except for the form I am using to make changes to the list of switches in an office. It's layed out like this:

    There is a combo box that lets you select which switch record the form is showing. There are a few text boxes that store info on the switch (such as the number of ports).

    Adding new switches seems to work fine. I have used the standard DoCmd.GoToRecord , , acNewRec and I update the info with some input boxes and some default data. All good.

    My problem happens when I try to change the switch name. This is not the primpary key (have autonumber for that) I have tried changing the values on the current record, as well as trying using a recordset. The data does not seem to get updated until I hit the [Refresh All] button on the Ribbon. I did code a me.refresh, but this does not seem to cut it. Am I doing something wrong?
    Please Login or Register  to view this content.
    BTW, the debog.print Me.SwitchIP returns a blank, instead of the new value.

  2. #2
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Canada
    MS-Off Ver
    Office 2013
    Posts
    120

    Re: Wait for update (refresh not working)

    Got it to work, and I think it might have to do a bit with the combobox. What I ended up doing is first getting the listindex of the selected item (that is being renamed), then after making the change, requerying the combobox, forcing it back to the same index (just incase) and then running a refresh. This seems to do the trick.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Does VBA wait until pivot completes refresh?
    By cornel.i in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2016, 11:39 AM
  2. Enable Auto Refresh - Wait for refresh to sinish before running a macro
    By tomlancaster in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2011, 11:52 AM
  3. DataSource Refresh and wait
    By graeme86 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-23-2008, 09:11 AM
  4. Wait until MSQuery Refresh finished
    By ChrisR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2005, 01:05 PM
  5. Wait for Pivot Refresh to Complete
    By Dan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2005, 02:05 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1