|
-
Aug 8th, 2002, 10:23 AM
#1
Thread Starter
Addicted Member
URL from Access Database
Does anyone know how to access a webpage by just clicking button on a form in Access. I am creating a file for upload to the site and I want to be able to go directly to the site once the file is created.
Thanks
-
Aug 8th, 2002, 10:45 AM
#2
Fanatic Member
-
Aug 8th, 2002, 11:54 AM
#3
Thread Starter
Addicted Member
GAFFER
How do I do this in the command button click event?
-
Aug 8th, 2002, 02:42 PM
#4
Hyperactive Member
VB Code:
Dim lReturn As Long
lReturn = ShellExecute(hwnd, "open", "http://w3.iapps.tdbank.ca/nso/order.nsf", vbNull, vbNull, 1)
Try that.
-
Aug 8th, 2002, 02:43 PM
#5
Hyperactive Member
Use your own URL though.
-
Aug 8th, 2002, 03:00 PM
#6
Thread Starter
Addicted Member
To EPHESIANS
I tried your code but I get an error saying that the method isn't found.
Any clues?
I was thinking of using a webbrowser object, I have no idea if that will even work in VBA.
-
Aug 8th, 2002, 03:04 PM
#7
Hyperactive Member
My apologies. You need to declare this first.
VB Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Then your method will be found.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|