I need some help with an issue I'm having.
I am currently building an export program to pull data from an Excel document and push it to a FoxPro database (I know, old tech), however I have hit a snag. The code attempts to pull data from a column containing rents for a month.
importCommand.Parameters["PRICEASK"].Value = exportReader.IsDBNull(14)
? (object) DBNull.Value
: exportReader.GetInt32(14);
However, I get this error:
Additional information: Specified cast is not valid.
I am quite frankly stumped as to why I am getting this error