TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
bryan 0
NA
9
0
INSERTING data into specific fields of a table
May 6 2005 2:46 AM
what abt if i wanna insert data to only fldLength and fldSize (fields) of the table, Table1, how do i choose to insert into the specific fields? Table1: fldID fldName fldLength fldSize fldExt ps: do i need to .update() or acceptchanges() for the above codes? my current codes are: cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\test.mdb;") cn.Open() For each filename In filelist str = "insert into table1 values('" & filename.name & "','" & "99" & "')" cmd = New OleDbCommand(str, cn) cmd.ExecuteNonQuery() Next For each filename In filelist str = "insert into table2 values('" & filename.Extension & "','" & filename.Length & "')" cmd = New OleDbCommand(str, cn) cmd.ExecuteNonQuery() Next cn.Close()
Reply
Answers (
1
)
MDI Child Issue
Trial version