J
Jim O
This is killing me. I call a print selector form from another form and place
the calling form name and other information. Everything works fine except
when I try to put together and string to find a value of a field on a form I
get the form text. Here is a portion of the code.
If Me.OpenArgs Like "*CallingForm*" Then 'answer on test form is RFI
Debug.Print "strcallingform = "; strCallingForm '=RFI
Dim strVIA As String
strVIA = "Forms![" & strCallingForm & "]![Via]"
Debug.Print "StrVIA = "; strVIA '=Forms![RFI]![Via]
'I expect StrVIA to = E-Mail
If strVIA = "E-Mail" Then
Me.PrintToPDFOption = True
Me.PrintToPDFOption.Visible = True
Me.PrintToPDFOptionLabel.Visible = True
End If
End If
I have tried so many ways to get the correct answer that minutes have turned
to hours.
Thanks in advance!
the calling form name and other information. Everything works fine except
when I try to put together and string to find a value of a field on a form I
get the form text. Here is a portion of the code.
If Me.OpenArgs Like "*CallingForm*" Then 'answer on test form is RFI
Debug.Print "strcallingform = "; strCallingForm '=RFI
Dim strVIA As String
strVIA = "Forms![" & strCallingForm & "]![Via]"
Debug.Print "StrVIA = "; strVIA '=Forms![RFI]![Via]
'I expect StrVIA to = E-Mail
If strVIA = "E-Mail" Then
Me.PrintToPDFOption = True
Me.PrintToPDFOption.Visible = True
Me.PrintToPDFOptionLabel.Visible = True
End If
End If
I have tried so many ways to get the correct answer that minutes have turned
to hours.
Thanks in advance!