am having a query regarding updating a table A records from table b on a button click...
have created connection sting and commandtext to exexute d query
am tryn ds query bt it seems to throw some syntax error
Expand|Select|Wrap|Line Numbers
- cmd.CommandText =
- "UPDATE stockno_table SET(product_id,Sold,Rec_No)
- =(SELECT product_id,Sold,Rec_No from stockno_temp_copy
- where stockno_temp_copy.stock_no=stockno_table.stock_no) where(exists)(stockno_table.stock_no=stockno_temp_copy.stock_no)"
all the records except the Sold which is YES/NO field changes...
NB: Access DB is used
Please advice me on this...
Thanx,
Mdoc