ismailr
04-11-2013, 05:45 AM
Hi,
I am a beginner in writing VBA need your help to fix the issue that I am facing.
Your urgent response is highly appreciated.
I have two tables – Table A (Transactions) and Table B (Description_Code). Table A has many transaction with a field 'description'. Table B has a field 'Desc_code' for each 'description' in Table A.
I need to update the Table A Transaction code from Table B.
sqltxt = "UPDATE TRANSACTIONS A" &_
"SET A.DESC_CODE= " & _[/font]
"(SELECT B.DESC_CODE FROM DESCRIPTION_CODE B " & _
"WHERE B.DESCRIPTION = A.DESCRIPTION"
docmd.runsql(sqltxt)
During execution it shows an Error "Operation must use an updateable Please Advise. Thanking you in anticipation.
I am a beginner in writing VBA need your help to fix the issue that I am facing.
Your urgent response is highly appreciated.
I have two tables – Table A (Transactions) and Table B (Description_Code). Table A has many transaction with a field 'description'. Table B has a field 'Desc_code' for each 'description' in Table A.
I need to update the Table A Transaction code from Table B.
sqltxt = "UPDATE TRANSACTIONS A" &_
"SET A.DESC_CODE= " & _[/font]
"(SELECT B.DESC_CODE FROM DESCRIPTION_CODE B " & _
"WHERE B.DESCRIPTION = A.DESCRIPTION"
docmd.runsql(sqltxt)
During execution it shows an Error "Operation must use an updateable Please Advise. Thanking you in anticipation.