Kellan Adamson
New Member
Importing data from SQL. It currently pulls all the data from the database. That part works. Where I am stuck is I only want to import data that hasn't already been imported.
Column B of my data is a transaction number that increases by 1 with each completed transaction. So I have used =MAX(B:B) in cell AA1 to get the value of the last cell in column B.
I want to use the value of that cell in my macro. Something like this:
"SELECT * FROM [ASI].[ExportView] WHERE SequenceNumber>(VALUE OF CELL THAT CONTAINS =MAX(B:B) - currently AA1)"
I can't for the life of me figure out how to do this.
Column B of my data is a transaction number that increases by 1 with each completed transaction. So I have used =MAX(B:B) in cell AA1 to get the value of the last cell in column B.
I want to use the value of that cell in my macro. Something like this:
"SELECT * FROM [ASI].[ExportView] WHERE SequenceNumber>(VALUE OF CELL THAT CONTAINS =MAX(B:B) - currently AA1)"
I can't for the life of me figure out how to do this.