Function MakeString() As String
Dim stringy As String
stringy = "1"
If [Forms]![TimeSick]![M].Value = 0 Then
stringy = stringy & "2"
End If
If [Forms]![TimeSick]![Tu].Value = 0 Then
stringy = stringy & "3"
End If
If [Forms]![TimeSick]![W].Value = 0 Then
stringy = stringy & "4"
End If
If [Forms]![TimeSick]![Th].Value = 0 Then
stringy = stringy & "5"
End If
If [Forms]![TimeSick]![F].Value = 0 Then
stringy = stringy & "6"
End If
stringy = stringy & "7"
End Function
Don't understand why this isn't working. I want to create a string from data in a form, and then pass this into another function. Any ideas? Think it's something simple I'm missing.
Dim stringy As String
stringy = "1"
If [Forms]![TimeSick]![M].Value = 0 Then
stringy = stringy & "2"
End If
If [Forms]![TimeSick]![Tu].Value = 0 Then
stringy = stringy & "3"
End If
If [Forms]![TimeSick]![W].Value = 0 Then
stringy = stringy & "4"
End If
If [Forms]![TimeSick]![Th].Value = 0 Then
stringy = stringy & "5"
End If
If [Forms]![TimeSick]![F].Value = 0 Then
stringy = stringy & "6"
End If
stringy = stringy & "7"
End Function
Don't understand why this isn't working. I want to create a string from data in a form, and then pass this into another function. Any ideas? Think it's something simple I'm missing.