목차
많이 사용하는 코딩의 예문들.
본문내용
1.Recordset
.Delete
.MoveNext
If .EOF Then .MoveLast
End With
Exit Sub
deleteErr:
MsgBox err.Description
End Sub
Private Sub mnu레코드추가_Click()
On Error GoTo Adderr
Adodc1.Recordset.AddNew
txt사원번호.SetFocus
Exit Sub
Adderr:
MsgBox err.Description
End Sub
Private Sub mnu새로고침_Click()
On Error GoTo err
Adodc1.RecordSource = "select*from 인사 order by 사원번호"
Adodc1.Refresh
Exit Sub
err:
MsgBox "에러가 발생했습니다"
End Sub
Private Sub mnu실수령액계산_Click()
On Error GoTo err
With Adodc1.Recordset
.MoveFirst
Do Until .EOF
!실수령액 = !기본급 + !수당 + !상여금 - !공제
.MoveNext
Loop
End With
Exit Sub
err:
MsgBox "안된당 ㅠ.ㅠ"
End Sub
.Delete
.MoveNext
If .EOF Then .MoveLast
End With
Exit Sub
deleteErr:
MsgBox err.Description
End Sub
Private Sub mnu레코드추가_Click()
On Error GoTo Adderr
Adodc1.Recordset.AddNew
txt사원번호.SetFocus
Exit Sub
Adderr:
MsgBox err.Description
End Sub
Private Sub mnu새로고침_Click()
On Error GoTo err
Adodc1.RecordSource = "select*from 인사 order by 사원번호"
Adodc1.Refresh
Exit Sub
err:
MsgBox "에러가 발생했습니다"
End Sub
Private Sub mnu실수령액계산_Click()
On Error GoTo err
With Adodc1.Recordset
.MoveFirst
Do Until .EOF
!실수령액 = !기본급 + !수당 + !상여금 - !공제
.MoveNext
Loop
End With
Exit Sub
err:
MsgBox "안된당 ㅠ.ㅠ"
End Sub
키워드
추천자료
(비쥬얼베이직) 도형을 그리고 색변화, 크기변화, 위치변화 를 할수 있는 프로그램입니다.
비쥬얼베이직) 자료를 읽어서 그래프를 그리는 프로그램입니다.
비쥬얼베이직) 고체역학) 보의 shear force 와 moment 를 그래프를 그리고 최대 최소값을 출...
비쥬얼베이직을이용한데이터계산프로그램
비쥬얼베이직 이미지 움직이기 프로그램
비주얼베이직(vb) - 메모장만들기
비쥬얼베이직(vb) 개인 관리 프로그램
비쥬얼베이직 학생관리소스
비주얼베이직[비베][비쥬얼베이직] 6.0 프로젝트용 타자게임 프로그램
비주얼베이직[비베][비쥬얼베이직] 6.0 프로젝트용 DB연동 쇼핑몰 상품관리 프로그램
소개글