Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Miscrosoft access database date range query

$
0
0

Hi. I have a MS Access data database that I've used as data source for my windows for. I'm trying to write a simple query relating to date range which is as mentioned below:

SELECT ID, [Name of child], FosterchildID, Age, Gender, NameOfSchool, Grade, [Name of foster parent], [ID of foster parent], [Contact Number], [Type of placement], Court, [Court ref no], [Court date], [Return Date], [Latest Return date], [Expiry date], [Physical adress], [Managing institution], [Social worker] FROM Sheet1
WHERE Court date BETWEEN @startdate AND @enddate

The problem is that I receive an error occurred while trying to create the paramerized query. Error in Where clause near 'Court' . Unable to parse query test. Can someone please advise me on what to do.


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>