728x90
반응형
728x170
Public Function AddParameter(pCommand As ADODB.Command, strParameterName As String, pDataType As DataTypeEnum, pParameterDirection As ParameterDirectionEnum, pSize As ADO_LONGPTR) As ADODB.Parameter
Dim pParameter As ADODB.Parameter
Set AddParameter = Nothing
On Error GoTo ErrorLabel
Set pParameter = pCommand.CreateParameter(strParameterName, pDataType, pParameterDirection, pSize)
pCommand.Parameters.Append pParameter
Set AddParameter = pParameter
Exit Function
ErrorLabel:
End Function
728x90
반응형
그리드형(광고전용)
'VB' 카테고리의 다른 글
[VB] SELECT CASE ~ CASE ~ CASE ELSE ~ END SELECT문 사용하기 (0) | 2015.05.15 |
---|---|
[VB] FORMAT 함수 사용하기 (0) | 2015.05.15 |
[VB] CHR 함수 : 개행 문자 사용하기 (0) | 2015.05.15 |
[VB] INSERT SQL 실행하기 (0) | 2015.05.15 |
[VB] SELECT SQL 실행하기 (0) | 2015.05.15 |
[VB] 명령 구하기 (0) | 2015.05.15 |
[VB] SELECT SQL 실행하기 (0) | 2015.05.15 |
[VB] 레코드셋 구하기 (0) | 2015.05.15 |
[VB] MDB 연결 구하기 (0) | 2015.05.15 |
[VB] 애플리케이션 경로 구하기 (0) | 2015.05.15 |
댓글을 달아 주세요