Marshall Brooks
Member
- Local time
- Yesterday, 21:38
- Joined
- Feb 28, 2023
- Messages
- 696
I'll try to respond to everyone ...
@isladogs - TBH, I don't know enough to know if your code can be adapted to what I want to do or not. Let me give more details:
- First off. I was able to open the database from home today. A form that takes 1-2 seconds to load in the office takes about 45 seconds to load from home. However, anything with file transfer (saving or copying Word files over the network, for example), also takes much longer from home.
- @Josef P. 's suggestion is an improvement. At least I see a progress bar, although it doesn't move until the subforms start loading.
- It occurred to me that I already have a working progress bar in the status bar - it says Running Query and it progresses from left to right across the form. Ideally, what I would like to do is somehow harness this and use it to feed into my pop-up progress bar.
- I also realize that this is somewhat OTT/OCD on my part. I.e. for most people, the database is pretty fast. In the office, you would barely notice the progress bar, and I don't know that for anyone else it is taking 45 seconds to load the forms.
- I can't find it now, but there was a thread on here where someone did what I want, but I think they used HTA to display the progress bar in Internet Explorer while the form was loading and that is a bit OTT, even for me.
@isladogs - TBH, I don't know enough to know if your code can be adapted to what I want to do or not. Let me give more details:
- As I mentioned, I'm looking for a Progress bar that displays (and starts over) during form loading and then closes. With Josef P.'s help, I now have a progress bar that does that, it just doesn't move until the subforms load. It seems to me like your progress bar is set to run for a fixed time (60 seconds in the example). If so, that won't work for me. I don't want to set the timer for 45 seconds and then in office people have to wait for 42 seconds for the PB to load when they could be working, and setting it for 2 seconds and having it disappear at home would be pointless.
- What I think could be modified to work (With a lot of changes) is to instead of have your database open with frmPB5, I would modify the FormLoad event of frmStart to open frmPB5 and then have the FormCurrent event of frmStart close frmPB5. I think that could work, but it would fly by since your frmstart loads pretty much instantly. (I may do some testing with that).
- I skimmed your page and your PB is a lot more complex than the one I am currently using (It's a lot fancier also), but you have three functions to set it up, and then one line to update it as needed. Mine basically just displays an Excel-style UserForm (not an Access Form - I got in trouble previously for calling them user forms, but I don't know how else to differentiate them), and you simply tell it how much % complete to display and change the caption as desired whenever desired.
- I'm not sure where the code would go for what I am desiring:
- I was thinking it would go in the timer section of the form being loaded (call that frmFormA), but @Josef P. subform delayed loading is using that, and I'm not sure how those would play together, and I don't know that you could have two timers. (And I didn't have much luck getting my PB to run off a timer, although I'm sure that should be possible).
- Similar to my second bullet to you above, I was thinking about somehow having a new form (frmProgressBar?) that only displayed the PB and load that form hidden from the frmFormA load event and close it from the frmFormA current event, but I don't know where to put any of the code on that form.