C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[14755] Re: Error Creating Cursor Handle"
newhuni [newhuni] 1104 읽음    2002-01-20 20:22
올빼미 님이 쓰신 글 :
: CustomerData->Part1Query->Active = false;
: CustomerData->Part1Query->SQL->
:                        Add("Select * from 분점A Where ID = :ID And 조번호 = :조번호");
: CustomerData->Part1Query->ParamByName("ID")->AsString = aaa;
: CustomerData->Part1Query->ParamByName("조번호")->AsString = k;
: CustomerData->Part1Query->Prepare();
:   if(CustomerData->Part1Query->Prepared) CustomerData->Part1Query->ExecSQL();
: CustomerData->Part1Query->Active = true;
:
:  PartEdit2[i][j]->Text = CustomerData->Part1Query->FieldByName("상세")->AsString;
:  PartEdit[i][j]->Text = CustomerData->Part1Query->FieldByName("출고날짜")->AsString;
:  PartEdit1[i][j]->Text = CustomerData->Part1Query->FieldByName("입고날짜")->AsString;
:
:           
:              위와 같이 할때는 에러가 나지 않습니다.......하지만 밑에걸 사용할때는
:             CustomerData->Part1Query->Active = true; 이부분에서
:             "Error Creating Cursor Handle"이라는 문구의 런타임에러가나네요.........
:            
:            
:            위와 밑이 틀린것은 위에는 select 쿼리문이고
:                                         밑에것은 update 쿼리문이라는 것입니다.
:                                           조언바랍니다...............
:
: CustomerData->Part1Query->Active = false;
: CustomerData->Part1Query->SQL->Clear();
: CustomerData->Part1Query->SQL->
:          Add("UpDate 분점Z Set 입고날짜 = :입고날짜 Where ID = :ID And 조번호 = :조번호");
: CustomerData->Part1Query->ParamByName("입고날짜")->AsString = TakeEdit->Text;
: CustomerData->Part1Query->ParamByName("ID")->AsString = bbb ;
: CustomerData->Part1Query->ParamByName("조번호")->AsString = Part_Take->TakeCombo->Text;
:       
: CustomerData->Part1Query->Prepare();
:  if(CustomerData->Part1Query->Prepared) CustomerData->Part1Query->ExecSQL();
: CustomerData->Part1Query->Active = true;
:

안녕하세요 뉴후닙니다. ^^

Select문과 Update문을 실행시키는방법은 다릅니다.
아래 쿼리문에서 Update를 실행할때 이렇게 바꿔보시면 어떨지... ^^

CustomerData->Part1Query->Active = true; 대신
--> CustomerData->Part1Query->ExecSQL(); // Update 쿼리문 실행...


그럼 좋은하루~~~

+ -

관련 글 리스트
14751 "Error Creating Cursor Handle" 올빼미 1101 2002/01/20
14755     Re: Error Creating Cursor Handle" newhuni 1104 2002/01/20
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.