|
-
Aug 1st, 2004, 04:13 AM
#1
Thread Starter
New Member
How to combine Insert and Where clause together??
Hi, I really need help here...
I want to update an 'avaibility' as in yes/no in the database..
Its subjected to only that particular serial number...
Heres my code.
Dim cmdTemp As OleDb.OleDbCommand
cmdTemp = New OleDb.OleDbCommand
cmdTemp.CommandType = CommandType.Text
cmdTemp.Connection = cnnRental
cmdTemp.CommandText = "INSERT INTO Stock (existance) VALUES ('0')"[COLOR=red] <--- how do i add the clause "Where serial = txtSerial.text or '?' to make it to a complete statement?"
cmdTemp.Connection.Open() cmdTemp.ExecuteNonQuery() cmdTemp.Connection.Close
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
|