954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

multiple search

I've a 'Birthday' form wherein when i click on Search command button, an input box is displayed. In this input box, i type in a month and when i click on OK i want details of all those students whose birthday falls in that month.i'm using ADO Data Connection.

me_j
Newbie Poster
3 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

simply u need to trap the start and end date of the month and run a BETWEEN query in the database using ADO to get the output.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

email your programme at [email]kehar2005@yahoo.co.in[/email] unless one see the programe one c annot give you the idea because how can one know where you are.
Bye.

kehar
Junior Poster in Training
72 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

cmdsearch_click()
dim str as string
dim rs as new adodb.connection

str=inputbox("enter month","search")
if str<>"" then
rs.open "select * from where month='" & str & "'"
if rs.recordcount>0 then

else
msgbox "no record found"
endif
else
msgbox "input the month plz."
endif
end sub

choudhuryshouvi
Posting Pro
553 posts since May 2007
Reputation Points: 30
Solved Threads: 49
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You