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
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java

This thread has been viewed 1247 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jan 23, 2019 18:56:41.