Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refresh Data query in VBA 1

Status
Not open for further replies.

Hap007

MIS
Mar 21, 2003
1,018
US
Hi,

I have a value in a sheet that gets refreshed using a data query.

I can right click on the field and select Refresh Data and the latest data is loaded.

What I would like to do is refresh the cell data from a different sheet using VBA or a macro.

Is this possible?
Any suggestions?

Thanks,
Hap...


Access Developer [pc] Access based Accounting Solutions - with free source code
Access Consultants forum
 


Hi,
Code:
YourSheetObject.QueryTables(1).refresh false


Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top