|
-
Sep 17th, 2000, 04:20 AM
#1
Thread Starter
New Member
How to combine both SELECt and INSERT statement together?
I know the code below is wrong
sql = "SELECT * FROM Orderitem WHERE InvoiceNumber = '" & invoiceid & "'" & " AND ItemNumber = " & itemid
sql = sql & " AND INSERT INTO OrderItem(Quantity) VALUES(" & quantity & ")"
Invoiceid is a string and the rest of the variables are long
Ur help is deeply appreciated. Thanks
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
|