Recent content by John Sh

  1. J

    Solved findfirst with a variable for the field name and "Like" and a variable in the criteria.

    Understood. I changed that setting some years ago, for what, at the time, seemed a good reason. To change it back, now, involves changing many, many, queries so I'm going to leave it as is for now. I thank you all for the input. John
  2. J

    Solved findfirst with a variable for the field name and "Like" and a variable in the criteria.

    Replacing * with % did the trick. ArnelGP your solution did not work. I finished up with rs.findfirst sField & " like '%" & sStr & "%'" Thank you both. John
  3. J

    Solved findfirst with a variable for the field name and "Like" and a variable in the criteria.

    I know this is an old dog but it still has a bite In the code below, sStr can be a string or a "number" If it is a number then findfirst returns not rs.nomatch If sStr is a string that is exactly the same as the field value then success. If sStr is not exactly the same as the field value then...
  4. J

    Solved Filtering problem

    Indulged you are, and Yes it fixed the problem. I only had to remove the blWrap clause as I finished up with "##" around the dates. I'll remove both the optionals as they are not required. Thank you for the code and the lesson. Much appreciated. John
  5. J

    Solved Filtering problem

    Sorry but you're wrong. A date "28/02/2024" would imply 28 months to the year, by your reckoning. Also the filter string is not used in SQL, it is passed as a string to me.Filter. This code is in a separate form where the user can select the filter criteria. fDate and lDate are a catchall if...
  6. J

    Solved Filtering problem

    It is international standard date format so "dd/mm/yyyy" Not that it would make any difference, as long as all my dates were of the same format. John
  7. J

    Solved Filtering problem

    No spaces.
  8. J

    Solved Filtering problem

    I have a filter on a table that includes the date, formatted as date/time. The controls are formatted general date. The filter works if the first and last date are different but returns a blank screen if the dates are the same, even though the times are different. How do I get around this? I...
  9. J

    Solved Access behaving badly, again.

    I have had a couple of indicators. Apart from the seemingly random behaviour of various forms, I discovered that the accdb file I had used a couple of days ago was unreadable yesterday. I went to my backup files and the directory was unreadable. Many years as a service technician tells me that...
  10. J

    Solved Access behaving badly, again.

    Thanks but I'm not sure it's relevant. I'm only using a single monitor in the real life, accde, situation and I don't think an auto centered form can be repositioned.
  11. J

    Solved Access behaving badly, again.

    Something I can control. If I change the misbehaving forms to "Auto centre" on, popup on, modal on they appear on top, When I turn "Auto centre" off they go behind. This is good in that I can see the form, but bad in that I cannot control the popup form's position. I have tested this with a few...
  12. J

    Solved Access behaving badly, again.

    I haven't given the Z order any thought but it's certainly worth considering. Thank you John
  13. J

    Solved Access behaving badly, again.

    Elmer Fudd was wise beyond his years, My next approach is to start a new database using some of the existing code and try to cause the problem to show itself. The uni problem is that while I have access to the operation of msAccess I may not be able to address msAccess.exe to use the command...
  14. J

    Solved Access behaving badly, again.

    Thanks DocMan. A very comprehensive and easily understandable explanation. I have decompiled the accdb following the advice here, https://www.devhut.net/ms-access-decompile-a-database/. I reopened the files in a new, blank, database and the problem still exists. I have scanned my computer for...
  15. J

    Solved Access behaving badly, again.

    Thanks. Nothing ventured, nothing gained. John
Back
Top Bottom