Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Making a query with Acces DateTime value and C# DateTime type

$
0
0

Hi, after read several questions here in the Msdn forums and see that many peoples are having almost the same problem that I, I hope to see some solution that works for me but so far no luck at all.

My issue is the next one, I have an Access database with a table named People, this table have a birthday field of DateTime type, in the project that I'm working on I need to fill a DatagridView using a query that I made in PeopeTableAdapter, the query is the next one ;

"Select p.* from people where p.bday=?",  this works just fine in Access Database and also in the preview option that gives me my Datagridview but, when I do the following

this.peopleTableAdapter.FillByBday(ds.people,DateTime.Now),  the DatagridView remains empty, why DateTime.Now doesn't work as parameter for my query???.

Regards

JG Estevez


Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

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