Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 20th, 2005, 09:13 PM
Registered User
 
Join Date: Feb 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Query birthdate by month

Hi everybody i'm new to this forum. I'm John and I would like††to ask for the opinion of the experts in this forum regarding my problem in VB6 when querying in ACCESS for birthdays by month, its seems that my query is working but it [u]does not display everybody</u> in the list.
Are there more accurate way to query?

Field: Birthday
DataType: Date/Time

Condition: WHERE BasicInfo.Birthdate LIKE '" & txtMonth.Text & "/##/####" & "'"

:(
Reply With Quote
  #2 (permalink)  
Old February 20th, 2005, 11:49 PM
Friend of Wrox
Points: 2,473, Level: 20
Points: 2,473, Level: 20 Points: 2,473, Level: 20 Points: 2,473, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: India
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

If you want to get birthdays in a particular month, then u can use the following:

WHERE month(BasicInfo.Birthdate ) = " & txtMonth.Text


Om Prakash
Reply With Quote
  #3 (permalink)  
Old February 23rd, 2005, 01:23 AM
Registered User
 
Join Date: Feb 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks a lot! I works fine now. I'm still testing it.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sql query to generate counts by month lethe SQL Server 2000 9 March 7th, 2017 01:08 AM
Calculate age from a varchar birthdate field nuttylife2 SQL Server 2000 15 April 18th, 2016 11:56 AM
Converting month name to month number kalyanykk SQL Server 2005 7 August 19th, 2008 11:37 PM
query Current Month, Month+1, Month+2, Month+3 anterior Access 2 September 24th, 2006 09:25 PM
get current month cathiec SQL Language 2 February 23rd, 2006 09:58 AM



All times are GMT -4. The time now is 08:55 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.