Results 1 to 3 of 3

Thread: vb doesn't accept expressions for filtering?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2004
    Posts
    70

    Resolved vb doesn't accept expressions for filtering?

    Hi, this is driving me crazy... let's see:

    I need to show a window with data of a client, now i need to tell the textboxes in this popping window (after I double click on a list of all my clients) to get the data from the dataset selecting the row where the idclient is the one the user double clicked on.

    I'm using a dataview (also tried to use dataset.table.select(...)) but won't accept an expression like this Dataview1.Rowfilter="IdClient=var" where var is a variable which has the Id value I want to use.

    what can I do?

    Thanks in advance
    Last edited by nacho2; Dec 1st, 2004 at 07:22 AM.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: vb doesn't accept expressions for filtering?

    Originally posted by nacho2
    Hi, this is driving me crazy... let's see:

    I need to show a window with data of a client, now i need to tell the textboxes in this popping window (after I double click on a list of all my clients) to get the data from the dataset selecting the row where the idclient is the one the user double clicked on.

    I'm using a dataview (also tried to use dataset.table.select(...)) but won't accept an expression like this Dataview1.Rowfilter="IdClient=var" where var is a variable which has the Id value I want to use.

    what can I do?

    Thanks in advance
    That's because ADO has no clue about your variable......
    Code:
    Dataview1.Rowfilter="IdClient=" & var.ToString
    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2004
    Posts
    70
    beautiful! 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