![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
A few months ago, I posted a message about an Apply Filter error message that only appeared on 2 of 20 or so computers using a program I developed. None of you had any suggestions although Marco tried to help. I finally go my hands on one of those computers and quickly determined that the problem was the use of Requery. I changed that to RunCommand/ Refresh and the macro ran perfectly. So, my question: Should I change all the Requery commands to RunCommand/Refresh? Nance |
#3
| |||
| |||
|
|
I finally go my hands on one of those computers and quickly determined that the problem was the use of Requery. I changed that to RunCommand/ Refresh and the macro ran perfectly. So, my question: Should I change all the Requery commands to RunCommand/Refresh? |
#4
| |||
| |||
|
|
Tomahawk Lady <nancycmarshall (AT) verizon (DOT) net> wrote in news:1945108f-d7d5-41d8-85f9-b491631f1d1c (AT) s9g2000yqa (DOT) googlegroups.com : I finally go my hands on one of those computers and quickly determined that the problem was the use of Requery. I changed that to RunCommand/ Refresh and the macro ran perfectly. So, my question: Should I change all the Requery commands to RunCommand/Refresh? Most of us with extensive Access experience don't use macros. And I don't use DoCmd.RunCommand for anything that has a direct VBA command. In short, my bet is that the problem is related to the way macros interact with the UI, and that if you were doing it all in VBA, you wouldn't have the problem. That would explain why nobody has experienced the problem, since most of the people offering help in the Access newsgroups graduated from using macros a long time ago. But it seems those that are macro gurus will have a heads-up with A2010. |
#5
| |||
| |||
|
|
But it seems those that are macro gurus will have a heads-up with A2010. |
#6
| |||
| |||
|
|
So, my question: Should I change all the Requery commands to RunCommand/Refresh? Nance |
#7
| |||
| |||
|
|
David W. Fenton wrote: In short, my bet is that the problem is related to the way macros interact with the UI, and that if you were doing it all in VBA, you wouldn't have the problem. That would explain why nobody has experienced the problem, since most of the people offering help in the Access newsgroups graduated from using macros a long time ago. But it seems those that are macro gurus will have a heads-up with A2010. |
#8
| |||
| |||
|
|
Now with 2010, I can see some use in using macros for simple tasks and for data macros & web databases (where there's no choice anyway) and I'm quite glad they enhanced the macro language - it's not full bodied as VBA and I will continue to write more VBA than macros but it's improvement nonetheless. |
#9
| |||
| |||
|
|
Refresh and Requery are quite distinct and should be used appropriately. |
#10
| |||
| |||
|
|
Banana, As I played around, I seemed to discover that Refresh only works with bound objects, while Requery works with unbound. Is that correct? |
![]() |
| Thread Tools | |
| Display Modes | |
| |