MHadden
Programmer
- May 13, 2001
- 105
I want to send the current info from an Access 2k form to an internet address. The following attempt didn't work. Can anyone advise, or at least let me know if I'm heading in the right direction.
Private Sub CmdMap_Click()
Dim strURL As String
Dim dblHandle As Double, strCommand As String
a = [Address]
c = [City]
s = [StateOrProvince]
p = [PostalCode]
i = "United States"
'build URL from address
strURL = " & _
"&outlmap.htm?a&c&s&p&HELPLCID=1033"
'create command string (e.g., Start, Run... string)
strCommand = "c:\program files\internet explorer\iexplore.exe " & strURL
'start a new browser window and load it!
dblHandle = Shell(strCommand, vbNormalFocus)
End Sub MichaelHadden@BigFoot.Com
If you give someone a fish, you have given them a meal. If you teach someone to fish, you have given them MANY meals!
Private Sub CmdMap_Click()
Dim strURL As String
Dim dblHandle As Double, strCommand As String
a = [Address]
c = [City]
s = [StateOrProvince]
p = [PostalCode]
i = "United States"
'build URL from address
strURL = " & _
"&outlmap.htm?a&c&s&p&HELPLCID=1033"
'create command string (e.g., Start, Run... string)
strCommand = "c:\program files\internet explorer\iexplore.exe " & strURL
'start a new browser window and load it!
dblHandle = Shell(strCommand, vbNormalFocus)
End Sub MichaelHadden@BigFoot.Com
If you give someone a fish, you have given them a meal. If you teach someone to fish, you have given them MANY meals!