I've made a program about flights using C# linked to an Access DB (for school).
However, after doing all the basics, I wanted to score some extra points.
My DB consists of two tables: reizigers
(passengers) and vluchten
(flights). All the classes and variables should be defined correctly.
My problem: I want to be able to search for flights between certain cost ranges.
However, after executing the query and thus trying it, it gives the error:
Additional information: Data type mismatch in criteria expression.
In my DB, the cost is kost
, and it's just a single Integer (e.g., 240).
Does anybody have any idea what it might be?