Last post Apr 19, 2011 09:45 AM by seamus1982
Apr 19, 2011 09:36 AM|seamus1982|LINK
I am trying to convert an empty string, int etc to a null type in the database. I have a seperate data access layer. So in the class in the insert I have the following.
paramADVehMake = new
paramADVehMake.Value = System.
paramADVehMake.Value = ad.getVehicleMake();
But I am getting an error for the DBNull. Can anyone show me where I am going wrong.
Thanks in advance,
Apr 19, 2011 09:41 AM|chandu123|LINK
What is the error you are getting?If possible post the table structure.
Apr 19, 2011 09:45 AM|seamus1982|LINK
Sorry. This was an easy one. Just realised I have not added the .value to the paramValue on the left hand side.
Thanks for the help anyway.