Results 1 to 4 of 4

Thread: Query?

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    11

    Question Query?

    I'm trying to figure out how to get a query for multiple columns in my dataviewgrid.. So far i havn't even been able to make a single column query work, when i search something in First_Name for example, it returns nothing. ive used query builer, ive written the code myself, nothing seems to work. thanks a lot. if you need any of my code or names of objects just ask. thanks again.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Query?

    Follow the Database FAQ link in my signature and check out the ADO.NET resources there. You should check them all out but one is my own ADO.NET code examples from the CodeBank. If you try to emulate what I demonstrate there and it doesn't work then show us what you did, i.e. post the relevant code, and tell us what happened, including any error messages.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    11

    Re: Query?

    Thanks man but I figured it out, it was because I kept putting the filters under the same 'filter' column instead of the 'Or...' :/ I do have another issue though, whenever i change code or close the project and re open it and then debug i get one extra entry that i don't want, like i want it to start fresh without previous entries. how do i clear that one without corrupting my tables?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Query?

    That question has nothing to do with the topic of this thread so it doesn't belong in this thread. Please keep each thread to a single topic and each topic to a single thread. I suggest that you start a new thread dedicated to the new topic and provide a more complete description of exactly what you want, exactly what you're doing and exactly what's happening.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Tags for this Thread

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