2016-11-16 4 views
0

Access 데이터베이스에서 "tbl_Update"라는 선택 쿼리와 "tbl_A"라는 테이블이 있습니다. 다음을 수행하는 버튼을 누르고 싶습니다. 필드가 "KW"필드를 검색하고 일치 할 때 (이 예제에서 값 "2016.45"가 일치 함) "tbl_update.CA041073p "을"tbl_A.CA041073p "로 변경하십시오. 아주 쉬울 것 같지만, 항상 오류가 있습니다. 간단한 해결책은 어떻게 할 수 있습니까? 감사!버튼을 눌러 한 테이블에서 다른 테이블로 값을 입력하십시오.

내 코드는 다음과 같다 그것은 나에게 오류 3037주고있다 : 당신은 몇 가지 코드 또는 SQL를 게시 할 필요가

Public Function Update() 

DoCmd.RunSQL "Update tbl_A INNER JOIN tbl_Update " & _ 
"ON tbl_A.KW = tbl_Update.KW " & _ 
"SET tbl_A.CA041073p = [tbl_Update].[CA041073p] " 

End Function 

enter image description here

+0

합니다. – Fionnuala

+0

안녕하세요. 나는 오류를 내 코드를 추가했습니다. – Toli

+0

그것은 나를 위해 작동합니다. 당신은 완전한 상황을 보여주지 못했습니다. 이것은 당신에게 몇 가지 단서를 줄 수 있습니다. http://stackoverflow.com/questions/170578/operation-must-use-an-updatable-query-error-3073-microsoft-access – Fionnuala

답변

0
One quite likely reason is that the user running the program doesn't have read-write access to the database file, especially if it is located in program files folder. 

So check the directory and file permissions and modify them if needed. You can also consider changing the location of the database file to another, more easily accessible folder. 
+0

DB 파일은 SharePoint에 있으며 읽기/쓰기 권한이 있습니다. 3037 오류가 어쩌면 쿼리 유형과 함께 발생합니다. "Where"절없이 코드를 사용해 보았으므로이 절을 필자의 기준으로 삼아야합니다. – Toli