Recent content by cheekybuddha

  1. cheekybuddha

    Interesting QUERY problem

    I'm not sure my logic is correct! WE need to hear from @mloucel for clarification of what is required.
  2. cheekybuddha

    Interesting QUERY problem

    Can you post the full SQL of this original query?
  3. cheekybuddha

    Interesting QUERY problem

    SELECT InitialDate, FN, LN, ApprovedD WHERE InitialDate >= Date() - 15 OR ( InitialDate >= Date() - 90 AND ApprovedD IS NOT NULL ) ;
  4. cheekybuddha

    Element not found

    Equally, if you have the ItemNode object, you can also do: tvw.Nodes.Remove (ItemNode.Index)
  5. cheekybuddha

    Element not found

    What are you expecting tvw.Nodes("IT" & Me.ItemID) to return?
  6. cheekybuddha

    Element not found

    Are you sure that it is actually returning the caption - how are you discovering this? Is it by hovering your mouse over the variable in break mode? If so, the intellisense may just be showing the default property of the object, all the while the actual object is being returned in the code.
  7. cheekybuddha

    Element not found

    You can try: Set ItemNode = tvw.Nodes("IT" & Me.ItemID).Object ' or Set ItemNode = tvw.Nodes.Item("IT" & Me.ItemID)
  8. cheekybuddha

    How to query db with memory array data?

    OP has gone AWOLfor the time being. I guess we'll have to wait for clarification. For an array of c.200 values, I think a temp table is still probably the best solution - you can index the values for better performance on the join (if only a subset of array values is required), and also handle...
  9. cheekybuddha

    How to query db with memory array data?

    The two can achieve much the same effect. (eg SELECT a.ID, a.Fld FROM a INNER JOIN b ON a.Fld = b.Fld ; -- will produce the same as SELECT a.ID, a.Fld FROM a WHERE a.Fld IN ( SELECT b.Fld FROM b ); -- if table b contains three records in Fld: 'a', 'b', 'c', then also...
  10. cheekybuddha

    How to query db with memory array data?

    Usually. See Section 2 in this link (last bullet point).
  11. cheekybuddha

    How to query db with memory array data?

    Certainly won't be able to use any indexes there then?
  12. cheekybuddha

    How to query db with memory array data?

    By the time you have a recordset it is too late. You can't join recordsets. Your 2 real options are: 1. Build the array into an SQL WHERE clause (per Post #3) 2. Load the array in to a temp table and join that to your existing table (more hassle if BE is in Access, easier in an RDBMS)
  13. cheekybuddha

    Solved Problem with the format property of a combo box.

    I haven't read this whole thread, so forgive me if this is irrelevant or already covered. If you need the hWnd of an Access control there is a method here on The Access Web: https://theaccessweb.com/api/api0027.htm
  14. cheekybuddha

    Random "unhide this form" prompt

    Is that something to do with the new query editor? Just a guess because of the form name.
  15. cheekybuddha

    How to always set focus on the control on parent form after entering data in the subform

    Do you really need to do the loop to get the line number? What happens if you try: Function GetLineNumber(F As Form, KeyName As String, KeyValue) ' ... ' Loop backward, counting the lines. ' Do Until RS.BOF ' CountLines = CountLines + 1 ' RS.MovePrevious ' Loop...
Back
Top Bottom