S
SPG
Using FP 2003 and Access. Doing a page using vbscript. How in the heck to
you make a hyperlink using vbscript ?
Thanks,
Sam
you make a hyperlink using vbscript ?
Thanks,
Sam
Stefan B Rusynko said:The DBRW would not be able to do it (too complex)
There is no reason you can't and shouldn't be able to do this w/ VB script
(Sql lookups) and a DB
Get your 5 symptom values as SymptonX then compare them to a DB w/
Symptoms/Diseases/Links
If all 5 of your symptoms all must be present use an AND comparison
IF Symptom=Symptom1 AND Symptom=Symptom2 THEN Disease=DiseaseY
If any of your 5 symptoms can be present use an OR comparison
IF Symptom=Symptom1 OR Symptom=Symptom2 THEN Disease=DiseaseY
Your problem will be data entry (users can enter symptoms with any text
which would force you to use Like comparison
- best to use dropdowns for the 5 symptoms with fixed predefined terms
from a DB
| Stefan, thanks for the quick response. Yes, what you said does create a
| hyperlink. What I failed to do was give you all of the required
| information. Here it is:
|
| This is a medical site that will allow the user to enter up to 5
symptoms.
| The results will show what diseases have those
| symptoms. The name of the diseases will be hyperlinked to the specific
| disease page. If I was doing this with a DBRW "Results" page it would
be
| simple. The Access table consists of the name of the disease, 5 fields
for
| symptoms and a field for
| the hyperlink info. If I was doing this as a stand-a-lone VB program I
| would create dynasets to check the 5 possible symptoms. But, as far as
I
| can tell, I can't do this here. Since any symptom could be in any of
the 5
| fields, I have to check each field of each record, one symptom at a
time.
| Thus using an SQL is out of the question. What is available for VB in
| general is not available for the website, thus I am using VBScript.
What I
| want to do: after each qualified record is selected
| I want to pull the last field containing the hyperlink info and have it
| apply to the field containing the disease. I know this may be asking
too
| much from VBSript, but I am looking to see if this is possible.
|
| Thanks,
|
| Sam
|
|
| | > <%
| > Response.write "<a href='somepage.asp'>Some Page</a>"
| > %>
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | > | Using FP 2003 and Access. Doing a page using vbscript. How in the
heck
| > to
| > | you make a hyperlink using vbscript ?
| > |
| > | Thanks,
| > | Sam
| > |
| > |
| > |
| >
| >
| >
|
|
|
Stefan B Rusynko said:The DBRW would not be able to do it (too complex)
There is no reason you can't and shouldn't be able to do this w/ VB script
(Sql lookups) and a DB
Get your 5 symptom values as SymptonX then compare them to a DB w/
Symptoms/Diseases/Links
If all 5 of your symptoms all must be present use an AND comparison
IF Symptom=Symptom1 AND Symptom=Symptom2 THEN Disease=DiseaseY
If any of your 5 symptoms can be present use an OR comparison
IF Symptom=Symptom1 OR Symptom=Symptom2 THEN Disease=DiseaseY
Your problem will be data entry (users can enter symptoms with any text
which would force you to use Like comparison
- best to use dropdowns for the 5 symptoms with fixed predefined terms
from a DB
| Stefan, thanks for the quick response. Yes, what you said does create a
| hyperlink. What I failed to do was give you all of the required
| information. Here it is:
|
| This is a medical site that will allow the user to enter up to 5
symptoms.
| The results will show what diseases have those
| symptoms. The name of the diseases will be hyperlinked to the specific
| disease page. If I was doing this with a DBRW "Results" page it would
be
| simple. The Access table consists of the name of the disease, 5 fields
for
| symptoms and a field for
| the hyperlink info. If I was doing this as a stand-a-lone VB program I
| would create dynasets to check the 5 possible symptoms. But, as far as
I
| can tell, I can't do this here. Since any symptom could be in any of
the 5
| fields, I have to check each field of each record, one symptom at a
time.
| Thus using an SQL is out of the question. What is available for VB in
| general is not available for the website, thus I am using VBScript.
What I
| want to do: after each qualified record is selected
| I want to pull the last field containing the hyperlink info and have it
| apply to the field containing the disease. I know this may be asking
too
| much from VBSript, but I am looking to see if this is possible.
|
| Thanks,
|
| Sam
|
|
| | > <%
| > Response.write "<a href='somepage.asp'>Some Page</a>"
| > %>
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| > | > | Using FP 2003 and Access. Doing a page using vbscript. How in the
heck
| > to
| > | you make a hyperlink using vbscript ?
| > |
| > | Thanks,
| > | Sam
| > |
| > |
| > |
| >
| >
| >
|
|
|
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.