[Logo]
Forums Register Login
I face a New java.sql.SQLException
When i use the below code it shows an weird error that i was not know before.
And here is my code....



And err here is the error
-------------------------


where the 201st line of RMAEntryModel is ps.setDate(1,da);

what should i do with...

Any help would be appreciated
 

Parameter index out of range (1>0)

You are using a PreparedStatement but have not set any bind parameters. All your set methods have no where to bind their values.

To use PreparedStatements, you need to supply placeholders for the various set methods you call to bind their values. FOr example:

[ June 19, 2008: Message edited by: Paul Sturrock ]
Thanks Paul Sturrock,

Now i cleared the error.Thanks for your help. Now i inserted the null values in my table. I have to move onto the next step of the project.

beerchug to you too
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Oct 16, 2017 19:11:29.