Datalux / Osintgram

Osintgram is a OSINT tool on Instagram. It offers an interactive shell to perform analysis on Instagram account of any users by its nickname
GNU General Public License v3.0
9.73k stars 2.16k forks source link

Incorrect syntax near '#'. #920

Open yossef7 opened 1 year ago

yossef7 commented 1 year ago

error

Hello, is there a solution for the error?

*Dim connstring As String = ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString Dim conn As New SqlConnection(connstring) conn.Open() Dim cmd As New SqlCommand("select from Table_1 where date_register = #" & TextBox1.Text & "#", conn) 'Dim myreader As SqlDataReader Dim myreader As SqlDataReader = cmd.ExecuteReader

    'If Not (myreader.IsDBNull(myreader.GetOrdinal("date_register"))) Then
    Dim datereg As DateTime = myreader("date_register")
    TextBox1.Text = datereg.ToString("MM/dd/yyyy")

    'Else
    '    TextBox1.Text = ""
    'End If
    conn.Close()**
BeChris100 commented 1 year ago

Off-Topic. Go to StackOverflow or other Forum websites, and ask there, when you are developing your own Software.