Search results

  1. T

    Median average doesn't change with any parameters

    OK the results are not returning the correct median values. I test some parameters using Excel and doing the analysis manually and it doesn't work for sure. for referral to treatment January 2011 should be 61 and it is 18 according to the report
  2. T

    Unselect list boxes

    initial code does work my friend. all sorted now :) have problems with median average reports outputtting incorrect results though! see link
  3. T

    Unselect list boxes

    i have somethung crude but it works me.ListBoxname = Is Null in the got focus property
  4. T

    Unselect list boxes

    My bad Multi select is set to none
  5. T

    Unselect list boxes

    I don't want to have users select multiple items in a list box. Only a single item.
  6. T

    Unselect list boxes

    I have eight list boxes on a form. When you click on an item in a list the form populates with corresponding data. I want the list box item to 'unselect' if I click from one list box to another Here is what I have tried Private Sub ListBoxName_LostFocus() Me.OtherListBoxName = Null I...
  7. T

    Median average doesn't change with any parameters

    Just what I am used to doing when running reports. When I create reports I have grown up getting used to using queries as the source. Am I rioght in thinking that technically the whole thing could be built via VBA coding?
  8. T

    Median average doesn't change with any parameters

    ahah - i think its working. What a guru you are sir
  9. T

    Median average doesn't change with any parameters

    I tried that before and it didn't work!!- Hmmm- I have a missing operator error message now - error 3075 missing operator in query expression. Strange as when i run the query in SQL format it works fine Set rs = CurrentDb.OpenRecordset("SELECT [ReferralToTreatment] " & _...
  10. T

    Median average doesn't change with any parameters

    I think the code is saying it doesn't know what table or fieldname to look at (in lamens terms)
  11. T

    Median average doesn't change with any parameters

    OK Now have 'syntax error in FROM clause? Set rs = CurrentDb.OpenRecordset("SELECT [" & fldname & "] " & _ "FROM [" & tname & "] " & _ "WHERE [" & fldname & "] IS NOT NULL " & _ "AND...
  12. T

    Median average doesn't change with any parameters

    I used your code vbanet for the parameters: Set ssMedian = MedianDB.OpenRecordset("SELECT [" & fldname & "] " & _ "FROM [" & tName & "] " & _ "WHERE [" & fldname & "] IS NOT NULL " & _ "AND (Date_Referred BETWEEN #" & [Forms]![frmReport]![startdate] & "# AND #" & _...
  13. T

    Median average doesn't change with any parameters

    Right - that working - just need to add parameters in select statement... here we go.....
  14. T

    Median average doesn't change with any parameters

    i get an error message 'the expression you entered as a query parameter oroduced this error [sqlstr]
  15. T

    Median average doesn't change with any parameters

    Am I calling that in the query window?
  16. T

    Median average doesn't change with any parameters

    I think I migth start from scratch and use base the record select on vbainet code
  17. T

    Median average doesn't change with any parameters

    I need to get a better understanding of the recordset function. I don't understand what the code is doing
  18. T

    Median average doesn't change with any parameters

    ah yes x = ssMedian(fldName)
  19. T

    Median average doesn't change with any parameters

    Morning - hope you had a good weekend. Picked this up again and have tried Function Median(tName As String, fldName As String) As Single Dim MedianDB As DAO.Database Dim ssMedian As DAO.Recordset Dim RCount As Integer, i As Integer, x As Double, y As Double, _ OffSet As Integer Set MedianDB...
  20. T

    Median average doesn't change with any parameters

    ah right - the median function applies to just one report so I am happy for that to change yes. sorry
Back
Top Bottom