18-01-2010, 22:24
Merhaba.
Aşağıdaki kodla ISIM alanındaki textbox1 de bulunan kayıt sayısını almak istiyorum.ISIM alanı stringtir.
Ama sonuç -1 olarak çıkıyor.Oysa en az 1 kayıt var.
VT ms sql compact 3,5
Teşekkür ederim.
Aşağıdaki kodla ISIM alanındaki textbox1 de bulunan kayıt sayısını almak istiyorum.ISIM alanı stringtir.
Ama sonuç -1 olarak çıkıyor.Oysa en az 1 kayıt var.
VT ms sql compact 3,5
Teşekkür ederim.
SQL
- SET rs1 = NEW ADODB.Recordset
- SET rs1 = UserForm1.conn.EXECUTE("select Count(ISIM) from [ISIM]" _
- & " where ISIM = '" & TextBox1.Text & "';")
- MsgBox rs1.RecordCount


