My hidden field returns a VB script error

L

LaurenMM

I need to use the following hidden field in order to post my db results to my
confimation page -
<input type="hidden" name="TicketID"
value="<%=FP_FieldHTML(fp_rs,"TicketID")%>">

however it is returning the following VBScript error:

Microsoft VBScript runtime error '800a000d'
Type mismatch: 'rs'
/_fpclass/fpdblib.inc, line 48

Help!! I am using this same hidden field on other pages but haven't had
any problems.....
Thank You in advance,
 
S

Stefan B Rusynko

Make sure your field name is defined by the DBRW before you use the reference to it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I need to use the following hidden field in order to post my db results to my
| confimation page -
| <input type="hidden" name="TicketID"
| value="<%=FP_FieldHTML(fp_rs,"TicketID")%>">
|
| however it is returning the following VBScript error:
|
| Microsoft VBScript runtime error '800a000d'
| Type mismatch: 'rs'
| /_fpclass/fpdblib.inc, line 48
|
| Help!! I am using this same hidden field on other pages but haven't had
| any problems.....
| Thank You in advance,
|
 
L

LaurenMM

Yes - it is defined in a sql query. As a result of the script error I am of
course getting a DBR error. However, if I remove the hidden field [which
takes the script error away] I don't get a DBR error, but I also don't
retrieve the record I need. My hidden field is required for what I am trying
to accomplish - I am most confused by the fact that I am using this identical
scenario in other areas of my website, but with no problem. ???
 
T

Thomas A. Rowe

Where is the error occurring, on the form page or the processing page?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
L

LaurenMM

The script error is occuring on my form page - in preview mode





Thomas A. Rowe said:
Where is the error occurring, on the form page or the processing page?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


Stefan B Rusynko said:
Make sure your field name is defined by the DBRW before you use the reference to it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I need to use the following hidden field in order to post my db results to my
| confimation page -
| <input type="hidden" name="TicketID"
| value="<%=FP_FieldHTML(fp_rs,"TicketID")%>">
|
| however it is returning the following VBScript error:
|
| Microsoft VBScript runtime error '800a000d'
| Type mismatch: 'rs'
| /_fpclass/fpdblib.inc, line 48
|
| Help!! I am using this same hidden field on other pages but haven't had
| any problems.....
| Thank You in advance,
|
 
T

Thomas A. Rowe

What happen when you try File Menu | Preview in Browser?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


LaurenMM said:
The script error is occuring on my form page - in preview mode





Thomas A. Rowe said:
Where is the error occurring, on the form page or the processing page?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


Stefan B Rusynko said:
Make sure your field name is defined by the DBRW before you use the reference to it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I need to use the following hidden field in order to post my db results to my
| confimation page -
| <input type="hidden" name="TicketID"
| value="<%=FP_FieldHTML(fp_rs,"TicketID")%>">
|
| however it is returning the following VBScript error:
|
| Microsoft VBScript runtime error '800a000d'
| Type mismatch: 'rs'
| /_fpclass/fpdblib.inc, line 48
|
| Help!! I am using this same hidden field on other pages but haven't had
| any problems.....
| Thank You in advance,
|
 
T

Thomas A. Rowe

Also try changing your code to the following:

<input type="hidden" name="TicketID" value="<%=fp_rs("TicketID")%>">

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


LaurenMM said:
The script error is occuring on my form page - in preview mode





Thomas A. Rowe said:
Where is the error occurring, on the form page or the processing page?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


Stefan B Rusynko said:
Make sure your field name is defined by the DBRW before you use the reference to it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I need to use the following hidden field in order to post my db results to my
| confimation page -
| <input type="hidden" name="TicketID"
| value="<%=FP_FieldHTML(fp_rs,"TicketID")%>">
|
| however it is returning the following VBScript error:
|
| Microsoft VBScript runtime error '800a000d'
| Type mismatch: 'rs'
| /_fpclass/fpdblib.inc, line 48
|
| Help!! I am using this same hidden field on other pages but haven't had
| any problems.....
| Thank You in advance,
|
 
L

LaurenMM

I get the same exact error, only it references another page.





Thomas A. Rowe said:
Also try changing your code to the following:

<input type="hidden" name="TicketID" value="<%=fp_rs("TicketID")%>">

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


LaurenMM said:
The script error is occuring on my form page - in preview mode





Thomas A. Rowe said:
Where is the error occurring, on the form page or the processing page?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


Make sure your field name is defined by the DBRW before you use the reference to it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I need to use the following hidden field in order to post my db results to my
| confimation page -
| <input type="hidden" name="TicketID"
| value="<%=FP_FieldHTML(fp_rs,"TicketID")%>">
|
| however it is returning the following VBScript error:
|
| Microsoft VBScript runtime error '800a000d'
| Type mismatch: 'rs'
| /_fpclass/fpdblib.inc, line 48
|
| Help!! I am using this same hidden field on other pages but haven't had
| any problems.....
| Thank You in advance,
|
 
T

Thomas A. Rowe

Do you have the recordset (fp_rs) open on the form page?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


LaurenMM said:
I get the same exact error, only it references another page.





Thomas A. Rowe said:
Also try changing your code to the following:

<input type="hidden" name="TicketID" value="<%=fp_rs("TicketID")%>">

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


LaurenMM said:
The script error is occuring on my form page - in preview mode





:

Where is the error occurring, on the form page or the processing page?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


Make sure your field name is defined by the DBRW before you use the reference to it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I need to use the following hidden field in order to post my db results to my
| confimation page -
| <input type="hidden" name="TicketID"
| value="<%=FP_FieldHTML(fp_rs,"TicketID")%>">
|
| however it is returning the following VBScript error:
|
| Microsoft VBScript runtime error '800a000d'
| Type mismatch: 'rs'
| /_fpclass/fpdblib.inc, line 48
|
| Help!! I am using this same hidden field on other pages but haven't had
| any problems.....
| Thank You in advance,
|
 
L

LaurenMM

Yes - but in a separate form.....




Thomas A. Rowe said:
Do you have the recordset (fp_rs) open on the form page?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


LaurenMM said:
I get the same exact error, only it references another page.





Thomas A. Rowe said:
Also try changing your code to the following:

<input type="hidden" name="TicketID" value="<%=fp_rs("TicketID")%>">

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


The script error is occuring on my form page - in preview mode





:

Where is the error occurring, on the form page or the processing page?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


Make sure your field name is defined by the DBRW before you use the reference to it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I need to use the following hidden field in order to post my db results to my
| confimation page -
| <input type="hidden" name="TicketID"
| value="<%=FP_FieldHTML(fp_rs,"TicketID")%>">
|
| however it is returning the following VBScript error:
|
| Microsoft VBScript runtime error '800a000d'
| Type mismatch: 'rs'
| /_fpclass/fpdblib.inc, line 48
|
| Help!! I am using this same hidden field on other pages but haven't had
| any problems.....
| Thank You in advance,
|
 
T

Thomas A. Rowe

You have to open it on the page you are using it on, unless your store it in a session variable
first on the previous page and then call the session variable.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


LaurenMM said:
Yes - but in a separate form.....




Thomas A. Rowe said:
Do you have the recordset (fp_rs) open on the form page?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


LaurenMM said:
I get the same exact error, only it references another page.





:

Also try changing your code to the following:

<input type="hidden" name="TicketID" value="<%=fp_rs("TicketID")%>">

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


The script error is occuring on my form page - in preview mode





:

Where is the error occurring, on the form page or the processing page?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


Make sure your field name is defined by the DBRW before you use the reference to it

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I need to use the following hidden field in order to post my db results to my
| confimation page -
| <input type="hidden" name="TicketID"
| value="<%=FP_FieldHTML(fp_rs,"TicketID")%>">
|
| however it is returning the following VBScript error:
|
| Microsoft VBScript runtime error '800a000d'
| Type mismatch: 'rs'
| /_fpclass/fpdblib.inc, line 48
|
| Help!! I am using this same hidden field on other pages but haven't had
| any problems.....
| Thank You in advance,
|
 

Ask a Question

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.

Ask a Question

Top