kermitforney
Technical User
Having some issues with the code below"
I am trying to assign the text box (txtControlNumber) to the variable (ControlNumber), but it is not working for some reason. Do I have to input information into the Control Source of the text box?? Help!!!
Thanks in advance!! )
Code:
Public Function fncInt2Bin(n As Long, Optional bReverse = False) As String
Dim m
m = n
Do
If bReverse Then
Dec2Bin = Dec2Bin & m Mod 2
Else
Dec2Bin = m Mod 2 & Dec2Bin
End If
m = Int(m / 2)
Loop Until m <= 0
End Function
End Function
Public Sub ControlNumber()
Dim InvoiceID As int32
Dim ControlNumber As Long
InvoiceID = Me.txtInvoiceID.Text
ControlNumber = InvoiceID(fcnInt2Bin)
Me.txtControlNumber = ControlNumber
End Sub
I am trying to assign the text box (txtControlNumber) to the variable (ControlNumber), but it is not working for some reason. Do I have to input information into the Control Source of the text box?? Help!!!
Thanks in advance!! )