Click here to Skip to main content
15,903,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello frens, i want to show the datafield values in crystal report
i have a combobox to select the month and i want to show the corresponding values of the month in the crystal report i have a query to select only the month beccause its of the same year only the how can i do that? please reply with the code

with regards bishnu karki
Posted

1 solution

You could do something like this:-

SQL
SELECT field1, field2 FROM myTable WHERE datefield BETWEEN @startDate AND @endDate;


where startDate would be the first of the month and endDate would be the last day of the month.

Hope this helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900