Search results

  1. J

    code needes to filter form using combo boxes

    Hi I'm quite new to access. I have a form [Performance Dynamic Report Builder] with 3 combo boxes on it [specialties], [gender] and [grade]. I'd like it to be able to filter my report [Dynamic Specialty Performance] by selecting data from either 1,2 or 3 of the combo boxes. Any ideas? Thanks
  2. J

    Filtering report using a form with combo boxes

    Sorry It's a form with the combo boxes on.
  3. J

    Filtering report using a form with combo boxes

    I get the following message; Run-time error '3075': Syntax error (missing operator) in query expression ' AND (Performance.Gender=[Forms]![Performance Dynamic Report Builder]![gender])'.
  4. J

    Filtering report using a form with combo boxes

    Hi I originally posted the following thread I have a report that gets filtered by a form with 2 combo boxes on. If I select data from both the combo boxes the report works fine. I'd like to get it to have the ability to select data from 1 or 2 of the combo boxes. The code is; DoCmd.OpenReport...
  5. J

    Filtering report using a form with combo boxes

    Hi RainLover Thanks for the reply. I'm new to this. Private Sub Command93_Click() Dim StrRptWhere As String If Nz([Specialties]) <> 0 Then StrRptWhere = "(Performance.Specialty =[Forms]![Performance Dynamic Report Builder]![specialties])" End If If Nz([Gender]) <> 0 Then If Nz(StrRptWhere) =...
  6. J

    Filtering report using a form with combo boxes

    I have a report that gets filtered by a form with 2 combo boxes on. If I select data from both the combo boxes the report works fine. If I select data from th e first combo and not the second it works fine. But if I leave the first combo blank and data in the second it doesn’t work. I'd like to...
  7. J

    Open Form filtered by one or two combo boxes

    thanks it work great. But only if the first combo box is used and the second is empty and not if its the other way round. Also if I wanted to add more combo boxes ie [grade] how would I go about adding that as I see the code is 'If', 'then' and the 'and' functions. Really appreciate your help.
  8. J

    Open Form filtered by one or two combo boxes

    Hi I have a report that gets filtered by a form with 2 combo boxes on. If I select data from both the combo boxes the report works fine. I'd like to get it to have the ability to select data from 1 or 2 of the combo boxes. The code is; DoCmd.OpenReport " Dynamic Specialty Performance "...
  9. J

    #Error displays when no records

    thank you, it worked!!! :)
  10. J

    #Error displays when no records

    Im using Access 2007 and I have a on my switchboard a total for any bookings outstanding usuing a subform and the count funtion. It all works fine except when there are no records then its just returns #Error Is there a way to stop this? I've tried is null and nz function but no joy. Thanks
  11. J

    How to filter a listbox?

    Thank you so much guys. John Big Booty I used your link/code. I cant thank you enough for this. Really big thanks
  12. J

    How to filter a listbox?

    I have built an access db and I have a form with a list box on it that lists all my customers. Cust Id, Last Name, First Name etc I can scroll down the list and when I double click on the particular customer it will open up another form with their details on it which is what I want. As I have...
Top Bottom