Blue Steel
New member
- Joined
- Jan 28, 2010
- Messages
- 4
- Programming Experience
- 10+
Hi guys. I'm new to VS (an old VB6 programmer), and I'm really struggling with this. I've googled until I'm blue in the face with no joy.
I'm sure it's a very simple solution. I've spent hours with no luck.
Basically, I have a table that contains a date field (Access 2007 database, and I'm using VB). I have a form with DateTimepicker1 on it for user selection.
I'm then trying to create a dataset with an SQL statement that looks to see if the table date field (FDOB1) is a later date than the DateTimepicker value.
Any help would be appreciated, as it's a bit of a showstopper at the moment (aren't they all!)
Al
I'm sure it's a very simple solution. I've spent hours with no luck.
Basically, I have a table that contains a date field (Access 2007 database, and I'm using VB). I have a form with DateTimepicker1 on it for user selection.
I'm then trying to create a dataset with an SQL statement that looks to see if the table date field (FDOB1) is a later date than the DateTimepicker value.
VB.NET:
sql = "SELECT NAME,SURNAME,FNAME1,FDOB1 FROM BTUC where FNAME1 <> '' and FDOB1 > " + "'" + _
DateTimePicker1.Value + "'"
Any help would be appreciated, as it's a bit of a showstopper at the moment (aren't they all!)
Al