Results 1 to 5 of 5

Thread: [RESOLVED] Query builder challenge within VB.NET

  1. #1

    Thread Starter
    New Member victorpc553's Avatar
    Join Date
    Jul 2011
    Location
    San Juan, Puerto Rico
    Posts
    15

    Resolved [RESOLVED] Query builder challenge within VB.NET

    Hey gurus, I'm working with VB 2008 and access 2007.

    I want to use the query builder(QB) to create a search of the database using a specific parameter (textbox) that this QB is supposed to also create automatically at the end of the process.

    One picture speaks more than 1000 words so you can see below the problem that I'm getting while trying to finish the query. What I am doing wrong?
    Attached Images Attached Images  
    Last edited by victorpc553; Aug 14th, 2011 at 10:32 AM. Reason: More clera

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Query builder challenge within VB.NET

    AFAIK, parameters in Access are sorrounded by []

    http://www.fontstuff.com/access/acctut01.htm
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  3. #3

    Thread Starter
    New Member victorpc553's Avatar
    Join Date
    Jul 2011
    Location
    San Juan, Puerto Rico
    Posts
    15

    Unhappy Re: Query builder challenge within VB.NET

    Thanks,

    however [] will create the prompt and is not the objective.

    Instead I need the query builder to read a value from a text box. Anyone has accomplish this?

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

    Re: Query builder challenge within VB.NET

    jggtz is correct for parameters within Access, but to pass values from your program the parameter placeholders should be just ? (with no name afterwards), eg:
    Code:
    WHERE (MFNAME LIKE ? + '%')

  5. #5

    Thread Starter
    New Member victorpc553's Avatar
    Join Date
    Jul 2011
    Location
    San Juan, Puerto Rico
    Posts
    15

    Resolved Re: Query builder challenge within VB.NET

    si_the_geek ..just tried your answer and it worked super...

    I'd spent hours reading without find it..so I trully appreciatte it. Thanks.

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