Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    BarbaraChurchill is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    9

    You're right - that DOES work - yay!!!! So maybe the PHYSICAL FORMAT is throwing the code off? Thanks!!!!

  2. #17
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Ooops! I misplaced an apostrophe, however the problem is bigger than that. The combobox RowSource includes ID and that is the value of the combobox but the value in FindingGuide table is the descriptive Format value. ID is the primary key in Format table but you are not saving that value as foreign key. You are saving value from Format field. The primary key ID is not being used. Either set Format field as primary key and remove ID field (I would) or save the ID as foreign key into a number field in FindingGuide.

    To use the present data structure and combobox as is must reference the column that has the text value. Column index begins with 0 so column 2 is index 1.

    strWhere = strWhere & "([PhysicalFormat] = '" & Me.CmbFormat.Column(1) & "') AND "
    Last edited by June7; 01-31-2013 at 01:58 AM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #18
    BarbaraChurchill is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    9

    Thumbs up

    Quote Originally Posted by June7 View Post
    Ooops! I misplaced an apostrophe, however the problem is bigger than that. The combobox RowSource includes ID and that is the value of the combobox but the value in FindingGuide table is the descriptive Format value. ID is the primary key in Format table but you are not saving that value as foreign key. You are saving value from Format field. The primary key ID is not being used. Either set Format field as primary key and remove ID field (I would) or save the ID as foreign key into a number field in FindingGuide.

    To use the present data structure and combobox as is must reference the column that has the text value. Column index begins with 0 so column 2 is index 1.

    strWhere = strWhere & "([PhysicalFormat] = '" & Me.CmbFormat.Column(1) & "') AND "
    THAT WORKS!!!! I deleted the ID field as you suggested. I had to re-put in a new combo box, point it to the Format table/field - and now the whole string of Keyword in any of those 3 fields, plus the format, plus a date range completely works!!! Even if I just put in the 1st date, it works! Altho the OriginalDate dates are not showing up in ascending order - do you know the code for that? Perhaps that is something I can just do in properties. And now I want to make that a table view instead of a form view, I think. But I can now move forward.

    I REALLY appreciate all of your extra time & help!! Thank you SO MUCH!!!!

  4. #19
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Sort order can be define in the form properties.

    Use Continuous Form as 'table view'.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. A TRUE Keyword Search
    By Meep in forum Queries
    Replies: 72
    Last Post: 05-13-2013, 06:45 PM
  2. Multiple Keyword Search
    By gatsby in forum Access
    Replies: 15
    Last Post: 01-21-2013, 10:53 PM
  3. Multi-Field Search Query not working
    By omair1051992 in forum Queries
    Replies: 16
    Last Post: 06-19-2012, 05:46 AM
  4. Replies: 5
    Last Post: 06-17-2011, 11:35 AM
  5. Making a keyword search
    By timmy in forum Forms
    Replies: 9
    Last Post: 03-14-2011, 02:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums