Search results

  1. E

    Illustrate (Count) Records of Filter button

    Worked it out myself: Yay OnCurrent Me.PendingFilterCount = DCount("[ID]", "MyQueryBehindTheForm", "[Status] = 'Pending'")
  2. E

    Illustrate (Count) Records of Filter button

    My form has several filter "buttons". What I am looking to do illustrate, underneath the button,how many records are pertaining to that particular filter so that it flags to the user that there are issues with those particular records. I already have an OnCurrent as so : Private Sub...
  3. E

    Filter on selected ?

    Many thanks isladogs.
  4. E

    Filter on selected ?

    I am trying to filter my data based upon the content of the data within the field that I wish to filter. I'm getting rather lost. Could you help me please? This is what I have tried on click DoCmd.ApplyFilter , "SalesPerson = Me.Salesperson" DoCmd.RunCommand acCmdRecordsGoToLast Thanks for...
  5. E

    filter with wildcard

    Figured it out: DoCmd.ApplyFilter , "Status Like 'Pre*' "
  6. E

    filter with wildcard

    I'm confused by the use of single and double quotes. Could somebody please help me with my syntax. Thanks
  7. E

    filter with wildcard

    Thanks Doc. I'm still struggling though!!!
  8. E

    filter with wildcard

    Hi All I want to capture all variables that begin with the word "Pre" DoCmd.ApplyFilter , "Status = 'Pre*'" I'm a bit confused by & and '''''''' and """"""""" Is there a go to place to learn the syntax? Thanks in advance
  9. E

    Multi filter referencing field on form

    I just happened to try yours first and it worked ! I didn't need to compare.
  10. E

    Multi filter referencing field on form

    Thanks Guys I tried Gasman's solution and it works perfectly. Many thanks.
  11. E

    Multi filter referencing field on form

    Just having trouble getting my filter to work: Dim strMyLast As String strMyLast = "Status <> 'Completed' And User = Me.UserName" Debug.Print strMyLast Me.Filter = strMyLast Me.FilterOn = True Im trying to filter my form by everything not completed and by the a field called userName that...
  12. E

    Exporting to SQL Server

    I am trying to automate exporting several RunSavedExport but I've come up against the " IDENTITY_INSERT is already on" I have tried to call a pass-through query after each import as follows: ALTER PROCEDURE [dbo].[IdentityMyTable] AS BEGIN SET IDENTITY_INSERT [dbo].[tblMyTable] OFF END But...
  13. E

    Goto instead of Filter !

    FIXED I found this. With Me.Recordset .FindFirst "[ID] = " & Me.GotoCPID If .NoMatch Then MsgBox Me.GotoCPID & " was not found" End With
  14. E

    Goto instead of Filter !

    I tried to put it before the code but when I debug its says that "Only Comments may appear after end Sub, end property End function" I then removed it all together but still no results !!
  15. E

    Goto instead of Filter !

    This is my current code that doesn't error. It just doesn't work. I have entered my own field names instead of Arny's generic names. GotoCPID is the search field ID is the field to search Private Sub GotoCPID_AfterUpdate() Dim strSavedSearch As String If Trim(Me.GotoCPID & "") <> ""...
  16. E

    Goto instead of Filter !

    I'm afraid Im getting no results from the changed code Arny ?
  17. E

    Goto instead of Filter !

    Hi Minty I'm struggling to remove the * correctly !!! Could you possibly help by editing this please? the FieldToSearch is a Unique ID .FindNext "[FieldToSearch] LIKE '*" & Me.txtSEARCH & "*'"
  18. E

    Goto instead of Filter !

    The field that I am searching IS the index !!
  19. E

    Goto instead of Filter !

    Thanks Arnelgp. It works fine however it takes over a minute to actually work !!!
  20. E

    Goto instead of Filter !

    I have a search field on my form as a filter. Could anybody direct me to AfterUpdate the forms data set remains in the same order but the focus goes to the relevant "searched" record. Oh PS. It's on a split form (sorry !!)
Back
Top Bottom