Microsoft Query linked to Access Database - datetime problem

Mading

New Member
Joined
Feb 10, 2016
Messages
7
Hi

I'm trying to link a spreadsheet to an access database using Microsoft query, and I want it to pull back records based on the date - I know that usually to get a specific date from Access, you enclose it with #, so #10/02/2016#

The problem is, I want to use the wildcard ? and link the parameter to a cell, so that the user can choose the date and the records will refresh accordingly. However, no matter what I try, I keep getting the dreaded "data type mismatch". Here's the query, any help would be appreciated


SELECT tblObservation.Subject, tblObservation.Date, tblObservation.`Overall Rating`
FROM Lesson.accdb.tblObservation
where tblObservation.Date = ?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,216,070
Messages
6,128,614
Members
449,460
Latest member
jgharbawi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top