Variable Problem

kitty77

Registered User.
Local time
Yesterday, 22:52
Joined
May 27, 2019
Messages
715
I'm using the following code. How to do I get the value "comps" to appear where test is?
Because it's wrapped in the quotes, I'm getting just the word test. What am I doing wrong?

Dim test As String
If ([Mdid] = "COMP32145") Then test = "comps"
[Mlink] = "#\test\pdf\" & [Mspectraid1] & ".pdf#"
End Sub
 
Look how you inserted Mspectraid1 into the string. Insert test the same way.
 
I see it now. Thanks!!
 

Users who are viewing this thread

Back
Top Bottom