Hi,
I have been struggling with this sql statement for my vb application and was hoping someone could offer me a bit of help please?
What I'm trying to is basically count all Bookingnumbers that = 1 AND Colours that are not red.
The above does the first part correct, but when I try to introduce the latter part of the statement I get datamismatch error.
Any help is much appreciated.
I have been struggling with this sql statement for my vb application and was hoping someone could offer me a bit of help please?
What I'm trying to is basically count all Bookingnumbers that = 1 AND Colours that are not red.
Code:
Dim Cmd As New OleDbCommand("Select Count(Bookingnumber) FROM LogBooking WHERE Bookingnumber = 1; ", conn)
Code:
Dim Cmd As New OleDbCommand("Select Count(Bookingnumber) FROM LogBooking WHERE Bookingnumber = 1 AND Colours = NOT red; ", conn)