I am relatively new in VBA.
My requirement is to pass UID and PSW in DB2 connection string from the sheet cells. This is the working connection string:
objMyConn.Open "Driver={IBM DB2 ODBC DRIVER};Database=DBName;Hostname=xxx.xxx.xxx;Port=123;Protocol=TCPIP;Uid=" & "XYZ" & ";Pwd=" & "Password"
I want to pass Uid and Pwd from cell A2 and B2 respectively.
Thanks in advance.