I want to generate a URL based on 2 fields in an access database.
I can get it to work with one variable, but have tried a number of iterations to get the second one to work properly.
the onclick VBA that I am using is:
Private Sub GenerateLink_Click()
Dim Filename As String
Dim Filedir As String
Filename = "https://hiddenforsecurity.com&password_encrypted=true&patient_last_name= '
& [patient last name]' &patient_id=' & [casenumber]'"
RetVal = Shell("C:\Program Files (x86)\Internet Explorer\iexplore.exe " & Filename, 1)
End Sub
I can get the first part to work when I do this:
Filename = "https://hiddenforsecurity.com&password_encrypted=true&patient_last_name="
& [patient last name]
But for the life of me I cannot figure out how to get the rest of it to work. I need to append the &patient_id= [casenumber] to also be apart of the link.
thanks in advance for any assistance.