Advertisement

03.27.2008 at 08:36AM PDT, ID: 23274442
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

ADO Query - change DateTimePicker format to yyyy-mm-dd

Tags: Delphi, Ado, Jet
Hi
New to Delphi & programming.
Using Delphi 7 / Access db(2003) / ADO query / Jet 4.0 conn.
sDateEdit1 & 2 are AlphaSkin versions of Delphi DateTimePicker input fields, on a User Query form.
Trying to return records for wedding_date date range between these two date edit boxes and have
fallen foul of the Access # # and YYYY-MM-DD format issues.
Have got (finally...) to the sql below, but don't know how to format the sDateEdit1 & 2 fields to accept a User's date in dd/mm/yyyy format - but pass to SQL as YYYY-MM-DD format.

ADOQuery3.Close;
    ADOQuery3.SQL.Clear;
    ADOQuery3.SQL.Add ('SELECT Name_first, Name_Last, Wedding_Date FROM Contacts WHERE Wedding_Date BETWEEN #'+DateEdit1.Text+'# AND #'+dateEdit2.Text+'# order by wedding_date, name_last, Name_first') ;
    ADOQuery3.Parameters.Clear;
    ADOQuery3.Open;
    dbgrid1.DataSource:=datasource3;
If I manually type dates in as say, 2008-01-01 - 2008-06-01 it all seems to work. So hopefully, if one of you smart guys can advise how to make the DateTimePicker convert a date to that format, all should be well!
Thanks,
Den
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: a3dvm
Solution Provided By: MerijnB
Participating Experts: 1
Solution Grade: A
Views: 126
Translate:
Loading Advertisement...
03.27.2008 at 08:39AM PDT, ID: 21222549

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.27.2008 at 09:12AM PDT, ID: 21222996

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.27.2008 at 09:15AM PDT, ID: 21223031

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.27.2008 at 09:18AM PDT, ID: 21223078

Rank: Wizard

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628