Tezcatlipoca
Registered User.
- Local time
- Today, 01:35
- Joined
- Mar 13, 2003
- Messages
- 246
Hokay, I've been tinkering with this one for a while, but no luck.
Let's say a form has a browser embedded, called WebBrowser0. The OnLoad code for this form is:
Now the page Search.asp does nothing without the following string of arguments after it:
where XXXXX is a 5 digit number of a person that exists in another database.
Also on my form is an unbound textbox, and a Submit button.
What I need is to allow a user to punch any 5 digit number they like into that textbox, then, when clicking submit, the embedded webbrowser takes them to that string.
For example, the user of the database enters 12345 into the box, clicks Submit and the embedded browser goes to:
I understand I'll have to save a variable somewhere, but am not sure where to start. I can, if need be, have the textbox on a different form if required, which I guess could then store the number as openargs and, when loading the webpage form, update the VB that calls the page.
Clear as mud? Yeah, for me too, but does anyone have any bright ideas?
Let's say a form has a browser embedded, called WebBrowser0. The OnLoad code for this form is:
Code:
Private Sub Form_Load()
Me!WebBrowser0.Navigate "http://www.mydomain.co.uk/search.asp"
End Sub
Now the page Search.asp does nothing without the following string of arguments after it:
Code:
?id=NLAcllu9&memberno=XXXXX
where XXXXX is a 5 digit number of a person that exists in another database.
Also on my form is an unbound textbox, and a Submit button.
What I need is to allow a user to punch any 5 digit number they like into that textbox, then, when clicking submit, the embedded webbrowser takes them to that string.
For example, the user of the database enters 12345 into the box, clicks Submit and the embedded browser goes to:
Code:
http://www.mydomain.co.uk/search.asp?id=NLAcllu9&memberno=12345
I understand I'll have to save a variable somewhere, but am not sure where to start. I can, if need be, have the textbox on a different form if required, which I guess could then store the number as openargs and, when loading the webpage form, update the VB that calls the page.
Clear as mud? Yeah, for me too, but does anyone have any bright ideas?