I searched through this forum and others, but can't get the solutions to work in my Delphi 2010 app.
I want to order my results by the correct month order instead of the alphabetical name.
Here is my code:
select
*
from
provHedis
where
provLastName = ''' + cbPLName.Text +'''
and
hyear = ''' + cbYear.Text + '''
order by
hyear, hmonth
hyear
and hmonth
are string fields in the table provHedis
and I want to show my results in a dbgrid in order from January to February. I hope this makes sense.
What I am getting now is alphabetical order by month.
Any help appreciated. I am a beginner/novice (actually a physician) who is self taught, so please no harsh or condescending remarks.