Results 1 to 4 of 4

Thread: [2008] - DataSet/Grid and MSAccess07 Querying

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2008
    Posts
    3

    [2008] - DataSet/Grid and MSAccess07 Querying

    Microsoft Access 07
    Visual Basic/Studio - 08
    Windows XP / Vista

    Hi, im currently working on a program which must connect to a microsoft access 07 database file and do various operations on the data and then resave the data.

    Currently i can get the information displayed in a table using a DataGrid and browse through the data by scrolling or using a combo box which i linked to the data.

    First Question: I am making a query for a quick search function using a text box and a button. I have the sql already however i need some help implementing the variable QSearch into the sql. QSearch is the variable which stores the infomation in the quick search text box. The query is currently in the TableAdapter section of DataSet.xsd ???
    SQL -
    Code:
    SELECT *
    FROM Members
    WHERE (any row is like QSearch)

    Question 2: If this isnt going to work or there is a much much simpler way to do this, please can someone point me in the right direction. Thankyou very much.


    if there is any other information you require please feel free to let me know
    cheers.

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

    Re: [2008] - DataSet/Grid and MSAccess07 Querying

    You should go to the Database Development forum and read the FAQ thread at the top, then follow the relevant links.
    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
    Feb 2008
    Posts
    3

    Re: [2008] - DataSet/Grid and MSAccess07 Querying

    i had a read there, just nothing seemed to relate to what im after.. all i wanted was something which told me step by step how to get a query working..

    Edit: thankyou i managed to find some information it seems from ur sig.
    Last edited by talmeeno; Aug 9th, 2009 at 06:39 AM.

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

    Re: [2008] - DataSet/Grid and MSAccess07 Querying

    Everything there relates to what you're after. It all about data access. Did you follow the ADO.NET links from that FAQ thread? There's an ADO.NET tutorial by mendhak. I think there's a fair chance that that shows you how to execute a query. There's also a thread by myself that includes ADO.NET code samples.
    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