I have a function that export 2 strings
and I want to use this strings in another sub.
here is my function:
and here is my sub:
and I didnt get the value
(ss and sq are null)
what did I need to change?
Thanks all
and I want to use this strings in another sub.
here is my function:
Code:
Private Function GKS(ByVal o)
Dim sq, ss
Select Case o
Case 1
sq = ">"
ss = "big then"
Case 2
sq = "<"
ss = small then"
Case 3
sq = "="
ss = "is"
Case Else
sq = "="
ss = "is"
End Select
End Function
Code:
Private Sub mySQL()
Dim sSQL, sq, ss
Me.strSQL = ""
....
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
If Not IsNull(Me.MySum) Then [B]GKS(Me.MySum3):[/B] sSQL = sSQL & " and [MySum] "[B] & sq &[/B] Me.MySum: Me.strSQL = Me.strSQL & "ñëåí áñéñ " [B]& ss & [/B] Me.MySum & vbCrLf
MsgBox sSQL
what did I need to change?
Thanks all