Advertisement

05.15.2008 at 12:49AM PDT, ID: 23404221
[x]
Attachment Details

Locate Returns False for DateTime in Access Database

Asked by crestty in Delphi Programming, Delphi Database

Tags: Delphi, 7, ADO Access Locate TDateTime

I have a Access Database and a Field of Type DateTime;

When I try to Locate, Locate always returns false, record not found.

Here is my Code:

var
  date_ : TDateTime;
  s_date : String;
begin

  date_ := DBChart1.Series[0].XValue[ValueIndex];

  //'31/12/2006 12:59:59'
  DateTimeToString(s_date,'yyyy/mm/dd hh:mm:ss am/pm',date_);

  if ADOTable1.Locate('Begin',s_date,[loCaseInsensitive]) then begin
    MessageDlg(''+DateTimeToStr(date_),mtInformation,[mbOk],0);
  end else
    MessageDlg('Recording not found.',mtInformation,[mbOk],0);Start Free Trial
 
Loading Advertisement...
 
[+][-]05.15.2008 at 01:33AM PDT, ID: 21571547

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 03:23AM PDT, ID: 21572026

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 03:34AM PDT, ID: 21572072

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 03:53AM PDT, ID: 21572175

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 04:43AM PDT, ID: 21572434

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 05:02AM PDT, ID: 21572534

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 05:04AM PDT, ID: 21572545

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 05:15AM PDT, ID: 21572618

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 05:40AM PDT, ID: 21572834

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Delphi Programming, Delphi Database
Tags: Delphi, 7, ADO Access Locate TDateTime
Sign Up Now!
Solution Provided By: atul_parmar
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.15.2008 at 05:50AM PDT, ID: 21572949

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.15.2008 at 06:58AM PDT, ID: 21573677

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628