p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Visual Basic 2005 Basics (http://p2p.wrox.com/forumdisplay.php?f=137)
-   -   Must declare the scalar variable "@x_id". (http://p2p.wrox.com/showthread.php?t=64587)

neeleen December 14th, 2007 06:07 AM

Must declare the scalar variable "@x_id".
i got this problem during "gridview.databind".

i dun know where i supposed declare the scalar variable.
after im doing some research, i got some solution are

1-InsertCommand.Parameters.Add("@x_id", SqlDbType.Int).Value = x_id.Value and

2-during select query if using where clause, the variable must same name with field..like 'select.......where x_id=@x_id.' it will not function if 'select.......where x_id=@xxx_id.'

both of it i already add and change in my coding..but it still error...
anyone can help me or fix it...??

All times are GMT -4. The time now is 09:27 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.