Recent content by heathxp

  1. H

    When Exporting a table to a Sharepoint list, all primary keys are converted to autonr

    Hm, I appreciate this. Would this mess up my Referential Integrity? It looks like if I do that access no longer allows me to cascade delete/update. Also, what's the recommended usage of the autonumber in this case? I never use it when I design tables. Does sharepoint use it as some Internal Id...
  2. H

    When Exporting a table to a Sharepoint list, all primary keys are converted to autonr

    Hi, I'm attempting to move all the data (Tables) in sharepoint for team colaboration and data centralization. Everytime I'm attempting to export a table, sharepoint automatically resets the primary key to AutoNumber. Because I already have a ton of data in these tables, I certanly need the...
  3. H

    search for records based on multiple criteria from multipe search boxes

    Thanks for the explanation. If I don't use .Text for the first one, the setFocus doesn't work correctly.
  4. H

    search for records based on multiple criteria from multipe search boxes

    Thanks. Ok so I think I figured it out but I'm not sure why it's acting like this. The issue is here: filterTextsearchFirst = searchFirst.Text & "" filterTextsearchLast = searchLast.Text & "" filterTextsearchState = searchState.Text & "" If I change it to ...
  5. H

    search for records based on multiple criteria from multipe search boxes

    I did just that and it's still the same issue? Private Sub txt_searchFirst_KeyUp(KeyCode As Integer, Shift As Integer) On Error GoTo ErrHandler Dim filterTextsearchFirst As String Dim filterTextsearchLast As String Dim filterTextsearchState As String Dim strCriteria As...
  6. H

    search for records based on multiple criteria from multipe search boxes

    I am trying to create a form that allows you to return results based on multiple criteria. I have FirstName field, LastName field, and State Field. I also have text boxes named searchFirst, searchLast, searchState where users can input criteria. How do I build the filter so that it takes the...
  7. H

    When Filtering Form and no results are returned. Handle the search box gracefully

    Thanks arnelgp, I ended up with this solution. I wish I could hide the (New) line at the end for aesthetics but I think this is acceptable.
  8. H

    When Filtering Form and no results are returned. Handle the search box gracefully

    Thanks everyone for your suggestions. I really appreciate it. Pretty much every software I know filters the way I have in mind. You start typing text and the form starts filtering, you type too much text and eventually the form is empty because there are literally no results for whatever you...
  9. H

    When Filtering Form and no results are returned. Handle the search box gracefully

    Haha. That's the whole point why I created this thread. I just want simple and intuitive filtering. "When Filtering Form and no results are returned. Handle the search box gracefully" If I take your example and remove the message if there are no results the list will not be filtered but it...
  10. H

    When Filtering Form and no results are returned. Handle the search box gracefully

    Simply display an empty list with no results. This is possible if I change the form "Allow Additions" to true. So I might go with the solution arnelgp described to do it programmatically. Although this solution is not proactive, it will still display the * "add new record" line to the end user.
  11. H

    When Filtering Form and no results are returned. Handle the search box gracefully

    Hi Micron, thank you for those tips. Yes, both of these solutions work but I was trying to make this a bit more user-friendly and not present a message box if there are no results. Instead, I wanted to clear the list and display no results. This is where all the trouble starts.
  12. H

    When Filtering Form and no results are returned. Handle the search box gracefully

    Thanks arnelgp. This fixes the focus problem but it will leave some results even if there's no match. Meaning if I type quickly some gibberish it will still display all the results instead of an empty list.
  13. H

    When Filtering Form and no results are returned. Handle the search box gracefully

    Sure. Uploaded the file directly here. Thank you
  14. H

    When Filtering Form and no results are returned. Handle the search box gracefully

    Micron. Not sure where you see a mouse event. I'm using the key_up event of a search text box. I am indeed refocusing on the textbox everytime I filter but when 0 results are displayed, it looks the form completely removes the focus from any of the form elemets and I cannot set it back so that...
  15. H

    When Filtering Form and no results are returned. Handle the search box gracefully

    Cannot believe how many hours I spent on this. I have a form that displays some data. I have a textbox that filters the form data after each key press. It seems like VBA just cannot gracefully move on with its life if the Me.Filter returns 0 results. This error happens because this form is...
Top Bottom