Search results

  1. B

    Keyword Search for Report

    I still receive the same error. Here's the newest evolution of code under that button: Private Sub Command400_Click() On Error GoTo Err_Command400_Click 'Button filters out records depending on the criteria entered in the search fields Dim strWhere As String Dim lngLen As Long Dim stDocName As...
  2. B

    Keyword Search for Report

    I received a "SYNTAX ERROR - missing operator in query expression" statement that time
  3. B

    Keyword Search for Report

    I'm not sure if this is what you meant... strWhere = "Report Like " '*" & frmKeyword & "*'" but when I run the search I still get all records rather than the parameters I enter into the text box.
  4. B

    Keyword Search for Report

    That's what I thought. I actually created a new form (frmkeyword) with just the memo box (tboreport), but the form is linked to the tblreport . The form has a report button for the same report but it's just getting it to search the tblreport.fldreport based on the tboreport in frmkeyword and...
  5. B

    Keyword Search for Report

    :). Hit me over the head and call me stupid. Do I create a query form? How do I set a variable to it? I have to create a second report and form?
  6. B

    Keyword Search for Report

    I'm sure this is an easier issue, but I received an error. This is what I have in the button code Private Sub Command400_Click() On Error GoTo Err_Command400_Click 'Button filters out records depending on the criteria entered in the search fields Dim strWhere As String Dim lngLen As Long Dim...
  7. B

    Generating a Filtered Report

    I don't see any errors as of yet. I really appreciate you helping me on this. I'll be sure to give you due credit if this goes anywhere. (Now, of course, I have one last issue. I have a Keyword thread if you are interested).
  8. B

    Generating a Filtered Report

    I believe that did it! I'm going to run a series of tests to verify, and I'll let you know.
  9. B

    Generating a Filtered Report

    if that does work, that would be perfect. I wouldn't be looking for anything not checked.
  10. B

    Generating a Filtered Report

    Is there a way to tell the code to ignore act as if a section of the code isn't even there if the yes/no box is unchecked and move on to the next section? I tried doing it once as this -- IF isnull THEN GOTO a_btnreport_click ELSE IF isnotnull THEN store Where clause for report but it...
  11. B

    Keyword Search for Report

    Hello, trying to revive this question.
  12. B

    Generating a Filtered Report

    I sent it.
  13. B

    Generating a Filtered Report

    I received a "Syntax Error in WHERE Clause". The debug says - SELECT * FROM TblReport WHERE
  14. B

    Generating a Filtered Report

    sorry it took a bit to respond. I've been watching the elections. I have the original still. I just created a 3rd back up and edited the back up. Should I leave everything except: Dim strWhere As String and remove: strWhere = Left$(strWhere, lngLen) or remove something else?
  15. B

    Generating a Filtered Report

    sure. just one second.
  16. B

    Generating a Filtered Report

    I believe it's in a standard module. I created it in 2007 by going to create>>module rather than entering a module into the form's script.
  17. B

    Generating a Filtered Report

    The module appears as this: Option Compare Database Dim strWhere As String is that what you were asking?
  18. B

    Generating a Filtered Report

    I'm a retard. I got this debug.print report - SELECT * FROM TableName WHERE I forgot to change TableName. I changed it and got this from the debug.print SELECT * FROM TblReport WHERE
  19. B

    Generating a Filtered Report

    I don't have a where clause in the vb code. It's in its own module.
  20. B

    Generating a Filtered Report

    without quotes around the rptIncident, I still receive the same debug error with quotes, I get: Run Time error 3145 Syntax error in where clause
Back
Top Bottom