S
smk23
I have some optional arguments in a function:
Public Function InsertRecord(strSP As String, Optional brSecondaryKeyValue
As Long) As Long
This is called with the following line:
mlngPatientID = InsertRecord("usp_NewPatient_Insert")
The second optional argument is not passed. In the function, I check for a
value in the 2nd argument with:
If Not IsNull(brSecondaryKeyValue) Then
This is executing as if there is a value in brSecondaryKeyValue. How do I
clear this value? Do I set the Object (it's not an object), or make it equal
to zero or null?
Thanks again!!
Public Function InsertRecord(strSP As String, Optional brSecondaryKeyValue
As Long) As Long
This is called with the following line:
mlngPatientID = InsertRecord("usp_NewPatient_Insert")
The second optional argument is not passed. In the function, I check for a
value in the 2nd argument with:
If Not IsNull(brSecondaryKeyValue) Then
This is executing as if there is a value in brSecondaryKeyValue. How do I
clear this value? Do I set the Object (it's not an object), or make it equal
to zero or null?
Thanks again!!