- Katılım
- 14 Ocak 2005
- Mesajlar
- 792
- Excel Vers. ve Dili
- Ofis 2010 2016
- Altın Üyelik Bitiş Tarihi
- 13/03/2022
Sheets("ADSFILE-BYIL").Select
DATaBy = Sheets("DigerHesaplamalar").Range("G4")
With Selection.ListObject.QueryTable
.Connection = Array( _
"OLEDB;Provider=SQLOLEDB.1;Persist Security Info=True;User ID=rap;Initial Catalog="" & Sheets("DigerHesaplamalar").range("g4") & "";Data Source=SERVERFS\ALNA;Use Procedur" _
, _
"e for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=LION-PC;Use Encryption for Data=False;Tag with column colla" _
, "tion when possible=False")
.CommandType = xlCmdSql
.CommandText = Array( _
"" & Sheets("DigerHesaplamalar").Range("M51") & "")
.Refresh BackgroundQuery:=False
End With
rap;Initial Catalog="" & Sheets("DigerHesaplamalar").range("g4") & "";Data Source=SERVERFS\ALNA;Use Procedur" _
Koyu yazdığım değişkeni nasıl bu satıra eklerim bu şekilde hata veriyor.
Teşekkür ederim.
DATaBy = Sheets("DigerHesaplamalar").Range("G4")
With Selection.ListObject.QueryTable
.Connection = Array( _
"OLEDB;Provider=SQLOLEDB.1;Persist Security Info=True;User ID=rap;Initial Catalog="" & Sheets("DigerHesaplamalar").range("g4") & "";Data Source=SERVERFS\ALNA;Use Procedur" _
, _
"e for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=LION-PC;Use Encryption for Data=False;Tag with column colla" _
, "tion when possible=False")
.CommandType = xlCmdSql
.CommandText = Array( _
"" & Sheets("DigerHesaplamalar").Range("M51") & "")
.Refresh BackgroundQuery:=False
End With
rap;Initial Catalog="" & Sheets("DigerHesaplamalar").range("g4") & "";Data Source=SERVERFS\ALNA;Use Procedur" _
Koyu yazdığım değişkeni nasıl bu satıra eklerim bu şekilde hata veriyor.
Teşekkür ederim.