Versions in use: python 3.7.2rc1 and Microsoft Access 2003
I am trying to get a specific record based on an ID and date. If I delete the date parameters it works fine. But using the mydate variable I get the error as shown below.
price_list__only = date_out[0]
#print('pricelist = '+str(price_list__only))
mydate = datetime.date(2018, 12, 1)
#print(mydate)
sql = '''
SELECT * FROM view_price_list WHERE SuppID = ? and "Price List Date" = ?
'''
parmeters = (price_list__only, mydate)
cursor.execute(sql,parmeters)
Error output: pyodbc.Error: ('07002',[07002], [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 3