2014-02-16 5 views
0

클라이언트, 클라이언트 영역 및 트랜잭션 유형을 추적하는 MS 액세스 데이터베이스가 있습니다. 사용자가 트랜잭션을 입력하고 한 번 완료되면 시스템은 클라이언트 영역 (지역 A, B 등) 및 트랜잭션 유형 (TransType 1, TransType 2)으로 정렬 된 클라이언트 지역 본부에 문자를 작성해야합니다 eg.Region A : TransType 1 , 지역 B : TransType 1, Region A : TransType 2.그룹화 된 데이터 추적

VBA, SQL 문 (VBA를 통해 실행), Word OLE 자동화, ADODB 레코드 및 고유 문자열로 작업하고 있습니다. 글자와 글자에 대한 모든 세부 사항을 추적하기 위해 DB를 어떻게 구성 할 수 있는지 조언 해줄 수 있습니까?

+Create a list of the transactions sorted by client regions and by transaction types  
+Load into a recordset and go to first record 
+Get the current values for client region and transaction type 
+Create a unique string 
+Create a letter and capture all necessary details in a letter table including the unique string 
+Run a select statement for LetterID for where unique string field is current unique string value 
+Update the transactions with New Letter ID and mark as batched 

+Loop through the whole recordset 
+Move to next record 
+Check if client regions and transaction types is the same. 
+If same, Update the transactions with current Letter ID and mark as batched 
+If different, create using above method. 
:

답변

0

나는이 문제에 대한 워크 플로우가있다 발견
관련 문제