Query Help

L

Leanne

I have built a query and have the following code on a command button to
refresh the query.
Private Sub CommandButton1_Click()
Sheets("Invoice Due").Activate
Range("A7").QueryTable.Refresh BackgroundQuery:=False
MsgBox "Refresh complete"
End Sub

When I run this it goes through the motions and asks for the parameters set
and then i get the Refresh complete however I am not getting any infromation
returned. When I run the report independantly of this code/button I do get
the information.

Can anyone help me identify what is going wrong please.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top