arsalansalar
پنج شنبه 29 شهریور 1386, 09:55 صبح
سلام دوستان
کسی اشکال این کد را میداند؟
من می خواهم بین 2 textbox از دستور or استفاده کنم.
Private Sub Command2_Click()
ado1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=novin"
ado1.CommandType = adCmdText
a = text1.Text
b = text2.Text
c = "select code as äÇã,nam as ÔãÇÑå,modir as ÂÏÑÓ from novin1 where code = '" & a & "'" Or code = '" & b & "'"
dg.Visible = True
ado1.RecordSource = c
ado1.Refresh
End Sub
کسی اشکال این کد را میداند؟
من می خواهم بین 2 textbox از دستور or استفاده کنم.
Private Sub Command2_Click()
ado1.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=novin"
ado1.CommandType = adCmdText
a = text1.Text
b = text2.Text
c = "select code as äÇã,nam as ÔãÇÑå,modir as ÂÏÑÓ from novin1 where code = '" & a & "'" Or code = '" & b & "'"
dg.Visible = True
ado1.RecordSource = c
ado1.Refresh
End Sub