I have a query that will select all records from my database based on the month. For example, I want to select all records for the month of January. The month() function doesn't work for me. The ComboBox
has a value of month name ("January", "February", etc.). I'm using VB 2010 and my database is Microsoft Access.
query = "SELECT empid, empname, department, empdate, timeinam, " & _
"timeoutam, lateam, timeinpm, timeoutpm, latepm, thw " & _
"FROM tbldtr where Month(empdate) =" & cmbMonth.Text