S
sean
Hi There,
I am trying to use ms access stored querys, I can get the query working as
SQL statements, I would like some help with the syntax for a stored query if
possible. Could someone paste a little code for me.
Sean
Dim firstname as string
firstname = "sean"
Dim myConnection As New OleDbConnection
Dim myCommand As OleDbCommand
myConnection = New OleDbConnection( "PROVIDER=Microsoft.Jet.OLEDB.4.0; DATA
Source=" & server.mappath("db_news_clicks.mdb"))
myConnection.Open()
myCommand = New OleDbCommand( "Insert INTO clicks ( url) Values ( @pUrl )",
myConnection )
myCommand.Parameters.Add( New OleDbParameter( "@pUrl", OleDbType.Varchar,
30 ))
myCommand.Parameters( "@pUrl" ).Value = FirstName
myCommand.ExecuteNonQuery()
I am trying to use ms access stored querys, I can get the query working as
SQL statements, I would like some help with the syntax for a stored query if
possible. Could someone paste a little code for me.
Sean
Dim firstname as string
firstname = "sean"
Dim myConnection As New OleDbConnection
Dim myCommand As OleDbCommand
myConnection = New OleDbConnection( "PROVIDER=Microsoft.Jet.OLEDB.4.0; DATA
Source=" & server.mappath("db_news_clicks.mdb"))
myConnection.Open()
myCommand = New OleDbCommand( "Insert INTO clicks ( url) Values ( @pUrl )",
myConnection )
myCommand.Parameters.Add( New OleDbParameter( "@pUrl", OleDbType.Varchar,
30 ))
myCommand.Parameters( "@pUrl" ).Value = FirstName
myCommand.ExecuteNonQuery()