Wrox Programmer Forums
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 20th, 2007, 11:59 AM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Morteza_M
Default Problem Filtering

Hi there,

How can i filter a recordset within a part of DateTime Filed?

Exp:

oRS.open "Select FullName, BirthDay from Members"...
MyString="94"
oRS.Filter = "Birthday like '%" & MyString & "%'"

Regards.
 
Old January 23rd, 2007, 07:46 AM
Registered User
 
Join Date: Jan 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the question is not clear. do u want to filter the records which contains birthday as "94"?

Ashish

 
Old January 23rd, 2007, 08:12 AM
Authorized User
 
Join Date: May 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Select Birthday
Where Birthday Between '1994-01-01' And '1994-12-31'






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use OR during filtering..... raaj81 Reporting Services 0 July 30th, 2008 05:34 AM
Filtering Dataview [Strange Problem] anup_daware ADO.NET 1 August 8th, 2006 07:09 AM
email filtering problem sanjeewa131 C# 2005 0 July 28th, 2005 06:16 AM
Filtering Subform Problem sherr8 Access 4 May 19th, 2004 10:22 AM
Ado Recordset Filtering problem abumishal Access VBA 0 March 30th, 2004 01:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.