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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QueryTable Code

Status
Not open for further replies.

John26

Technical User
May 8, 2006
4
DE
Hi,

leider bin ich noch kein wirklich fortgeschrittener VBA-User. Daher flogendes Problem:

Code:
Private Sub CommandButton1_Click()

Application.ScreenUpdating = False
LPP03aktualisieren
Sheets("tbl_Buy_RE").Activate
Sheets("tbl_Buy_RE").Range("B10").Select
Selection.QueryTable.Refresh BackgroundQuery:=False
ActiveSheet.Range("B14").Select
Sort
CreateFondList

Application.ScreenUpdating = True
End Sub

Da das kleine Programm leider die Access Daten nicht mehr richtig importiert, suche ich im gesamten Code das entsprechende Query Objekt, um festzustellen woher genau er sich die Daten zieht. Leider finde ich nicht einmal das. Bei Klicken auf den Commandbutton1 "refreshed" er die Daten allerdings noch (leider halt nur die Falschen), sodass es auf jedenfall irgendwo sein muss.
Wahrscheinlich stelle ich mich nur sehr blöd an. Kann mir trotzdem wer weiterelfen? Wo finde ich den entsprechenden QueryTable Code?

Danke für die Mühe
Stefan
 
erm...

Ich keine sprechen deutsch??

--------------------
Procrastinate Now!
 
Very smart of me to post the first request in German.
Next try.

Unfortunately, my VB skills are not very advanced, yet.So, I have the following problem:

Code:
Private Sub CommandButton1_Click()

Application.ScreenUpdating = False
LPP03aktualisieren
Sheets("tbl_Buy_RE").Activate
Sheets("tbl_Buy_RE").Range("B10").Select
Selection.QueryTable.Refresh BackgroundQuery:=False
ActiveSheet.Range("B14").Select
Sort
CreateFondList

Application.ScreenUpdating = True
End Sub

The little program, I am trying to fix is an excel sheet that imports data from access. Unfortunately, it does not import the data correctly anymore. I was looking for the referring query object and the code(to import the data)to figure out exactly, where he updates the data from (within the access database). Unfortunately, i was not even able to find it. When clicking on the commandbutton1 the programm still refreshes the data, just the wrong ones or not completely. Does anyone know what and how excel imports the access data? Where is this QueryTable code?

Thanks for helping
Stefan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top