+ Reply to Thread
Results 1 to 3 of 3

Query & Coding issue

  1. #1
    Registered User
    Join Date
    12-15-2010
    Location
    California,United States
    MS-Off Ver
    Access 2007
    Posts
    2

    Query & Coding issue

    I have the coding below in VB. I have a user form that allows the user to select a date range & an Open or Closed status or both. If you select a date range one of the status selections the query only looks at the status you selected & brings up everything for that status. If you open the query back up after you run the code in design mode it is blank except for the status you selected on the form. I can't figure out what's missing.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    01-19-2011
    Location
    Houston, TX
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Query & Coding issue

    Have you also tried running the generated SQL outside VBA?
    If there is a problem with the SQL, sometimes you see that.

    Have you tried deleting your current query, than using CreateQueryDef to recreate it?

  3. #3
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Query & Coding issue

    Hi
    Can you please upload database

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1