Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to pass a parameter from vba to html

Status
Not open for further replies.

rubertoga

Technical User
Jan 4, 2003
22
US
I need to get an account number from my access form to a url which will be processed by an ASP page.

Can you tell me how I would get the variable by the name of strAccount from the form onto the end of following URL:


It's not really covered anywhere i've read/looked up

Thanks
 
Append the account number to the url before you call the ASP page:
Code:
Dim strURL As String

strURL = "[URL unfurl="true"]http://domain/folder/page.asp?acct="[/URL] & Me.AccountNumber

Application.FollowHyperlink strURL
Your ASP page needs to be expecting a [tt]Request.QueryString("acct")[/tt] argument.

VBSlammer
redinvader3walking.gif

"You just have to know which screws to turn." - Professor Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top