BarryL
Well-known Member
- Joined
- Jan 20, 2014
- Messages
- 1,436
- Office Version
- 2019
- Platform
- Windows
- MacOS
Hi All,
Trying to learn about ADO to fix my big file issues seeing as work wont let me use an SQL DB , R or Python. Can anyone tell me whats wrong with the below WHERE condition? I'm debugging at mrs.Open with an error of "Parameters expected 1"
cheers
Trying to learn about ADO to fix my big file issues seeing as work wont let me use an SQL DB , R or Python. Can anyone tell me whats wrong with the below WHERE condition? I'm debugging at mrs.Open with an error of "Parameters expected 1"
Code:
Conn.Open sconnect
sSQLSting = "SELECT * From [Sheet1$A1:Z2000] WHERE MASTER_PORTFOLIO_CODE = " & "XXXXX"
Debug.Print sSQLSting
mrs.Open sSQLSting, Conn
cheers
Last edited: