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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset Parameters Problems

Status
Not open for further replies.

LSD57

Programmer
Jun 6, 2002
1
GB
Hi,

I can't understand why my recordset won't work when I put Textbox3.value in the value box of the parameter tab in recordset properties. I keep geeting the message that it is of the wrong type but I know through writing the value to the screen that it is an integer.

Can anyone help?
 
Try:
voRecordset("FieldName") = cint( Textbox3.value )
- or -
voRecordset("FieldName") = clng( Textbox3.value )

depending on the type of your database column.
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Visit --> for (Replica) Watches, Pen, Handbags, Hats, Jerseys and more ... at prices that makes your code spin ...
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
 
You probably need to prefix the value with an = sign.

Actually, I do not use the parameters bit of the recordset properties. I set the recordset to be 'do not automatically open'. Then in the thisPage_onenter event, you can specify the parameters and then open the recordset. Its easier to control and to see whats going on. (Content Management)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top