|
-
May 17th, 2004, 08:59 PM
#1
Thread Starter
Addicted Member
Vb to vb.net
Can any one help me out I have been programming in vb but have now started to move over to vb.net have some problems
in vb if you wanted to execute a sql statement it was easy one line.... connection.execute "Insert Into...."
how do i just do something simple like this in .net?????
... using Access for the mo
thanks
-
May 18th, 2004, 12:42 AM
#2
Lively Member
like this?
VB Code:
Dim cn As New OleDb.OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=" & Application.StartupPath & "\northwind.mdb")
cn.Open()
Dim cmdText = "insert into territories values('yo','mage',1)"
Dim cm As OleDb.OleDbCommand = New OleDb.OleDbCommand(cmdText, cn)
cm.ExecuteNonQuery()
if not, sorry...
-
May 18th, 2004, 07:04 AM
#3
Thread Starter
Addicted Member
I keep getting a "Operation must use an updateable query."
-
May 18th, 2004, 08:29 PM
#4
Lively Member
i don't know about the previous vb, sorry. but this might help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|