Look at your code:
Code:
NextDue = '" & todaysdate & "'"
If you want to get values less than, intead of equal to, the value then would you not just replace the = with <? Why would the less than sign go outside the double quotes when the equal sign is inside?
Code:
NextDue < '" & todaysdate & "'"
That said, you should NOT be using string concatenation to build SQL statements. You should be using parameters, which is the proper way:
vb.net Code:
Using command As New MySqlCommand("SELECT NextDue FROM Company_ID WHERE NextDue < ?Today", connection)
command.Parameters.AddWithValue("?Today", Date.Today)