Should I just go ahead and delete Sheet 3 and Start the Database queery again?
This is what it did in Sheet 3 by the way:
Pool Unique FA FC Email
It seems to have deleted the Column (FA Split Master Lookup) and bought back data for the first 2 columns
Sheet 1 Headings:
A B C
1 (Pool Unique FA) (FC Name) (FC Email)
2 1234567 Smith, John jsmith@hotmail.com
Sheet 2 Headings
A B
FA Split Master Lookup
6582461
Did you read my post...
When I tried to refresh the data
An error message came up saying
[Microsoft][ODBC Excel Driver] Missing),],or item in queer expression`sheet 1$`.Pool Unique FA`='sheet2$`,`AccountList`
Ok this time it ran the Macro and here is the code:
Sub GetData()
'
' Macro1 Macro
' Macro recorded 07/17/2007 by Adeel Khan
'
Dim sSQL As String
sSQL = "SELECT"
sSQL = sSQL & " `Sheet1$`.`Pool Unique FA`"
sSQL = sSQL & ", `Sheet1$`.`FC Email`"
sSQL = sSQL & vbCrLf...
Is it possible that this is happening because that was how the original Database queery was run?
Just a guess right now I dont even remeber what the criteria was that I used.
Thanks
An error message came up saying
[Microsoft][ODBC Excel Driver] Missing),],oritem in queer expression`9sheet 1$`.Pool Unique FA`='sheet2$`,`AccountList`',
Ok I ran this updated code in Sheet 4 and I got an error message saying SQL syntax error
When I pressed Debug the following code was highlighted:
.Refresh BackgroundQuery:=False
Ok I guess my computer did not crash.
I got back an error:
A box popped up saying
(Runtime error '9')
Subscript out of range.
I then pressed the debug button and the following code was highlighted:
[code]With Sheets("Sheet4").QueryTables(1)[code]
Oh Shiiiit. Do you mean I was supposed to do this only for 5 Account numbers???
Like an initial test???
I just ran the Macro on the whole file and it looks like it may crash my computer. The CPU usage has shot up to 90%.
I think I prefer this:
sSQL = sSQL & "WHERE (`Sheet2$`.`FA Split...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.