Results 1 to 4 of 4

Thread: MSFlexgrid Problem

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2004
    Location
    Arkansas
    Posts
    35

    MSFlexgrid Problem

    Hello,
    I have a flexgrid I use for a search form.
    I can return text values fine but cannot return dates
    This works fine
    Code:
    strsearchService = "Select RO,Vehid,TransDate,Comments from ROHeader where VehID = '" & txtVehicle & "'and SourceID = 23 order by RO DESC"
    But when I try to return a date within a range like
    Code:
    strsearchP1 = "Select RO,Vehid,TransDate,Comments from ROHeader where WHERE [TransDate] BETWEEN #" & txtDateFrom & "# AND #" & txtDateTo & "# order by RO DESC"
    I get Hierarchial flexgrid does not support the requested type of data binding. What is causing this?
    Thanks for any help

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: MSFlexgrid Problem

    That looks like a query against a database, not flexgrid.

    Are you running this against an Access Table?

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: MSFlexgrid Problem

    It looks to me as if your date values are not specified correctly (even if you are using Access).

    For an explanation of the correct way to do it, see the article How do I use values (numbers, strings, dates) in SQL statements? from our Database Development FAQs/Tutorials (at the top of the Database Development forum)


    In addition to that, carefully re-read your second statement.. there is a duplicated word in there.

  4. #4

    Thread Starter
    Member
    Join Date
    Dec 2004
    Location
    Arkansas
    Posts
    35

    Re: MSFlexgrid Problem

    Yes, it is a query against a database which returns the rows to a flexgrid.
    At least I think that's how it works. and yes it is an access table.
    I will take a look at your suggestions.
    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width