You need to include the executable:
With A2.0 this is a PITA (only allows 8.3 format for files) but
x = Shell("C:\Progra~1\Intern~1\Iexplore.exe http://www.microsoft.com", 1) may work...
--
Hope this helps
Arno R
"MLH" <CRCI@NorthState.net> schreef in bericht news:u2bsrvgt409o0ghigrt359hjk3329e5lkr@4ax.com...[color=blue]
> I tried the following:
>
> x = Shell("http://www.microsoft.com", 1) #AND#
> x = Shell("www.microsoft.com", 1)
>
> ... but Access 2.0 moaned & groaned complaining...
> File not found. Error Code 53
> Possible causes: A Kill, Name, or Open statement refers to a file that
> doesn't exist. Your program tried to call a procedure in a DLL and the
> library file name specified in the Lib clause of the Declare statement
> can't be found.
>
> I'm afraid I'm still in the dark.
>
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxx[color=green]
> >Shell execute the URL.
> >
> >On Thu, 20 Nov 2003 15:06:22 -0500, MLH <CRCI@NorthState.net> wrote:
> >[color=darkred]
> >>Oops... forgot to mention I was trying to do this from Access 2.0...
> >>(sorry)[/color]
> >[color=darkred]
> >>>How can I hit
www.someplace.com from an Access form?
> >>>I'd like to...
> >>>1) open user's default browser (if not already open)
> >>>2) type in a URL
> >>>3) press enter (or click Go - or - whatever it takes)
> >>>I'd like it all to happen when user clicks button on form.[/color][/color]
>[/color]