Search results

  1. cheekybuddha

    Solved How to handle ' in sql string

    No-one disputes that a parameterised query is excellent for this, but Arnel's code in #2 handles your example just fine too.
  2. cheekybuddha

    Solved How to handle ' in sql string

    How so?
  3. cheekybuddha

    Calculated Field Error

    Can you use UDF's in your calculation field? If so, you could try creating a function with unitsInStock as a parameter.
  4. cheekybuddha

    Access subform - Current event does not fire on first record selected

    I don't know why you are using an ADODB recordset, but you do realise that an ADODB recordset has a .Clone property that works similarly to the form's .RecordsetClone. So, instead of accessing Me.RecordsetClone, use Me.Recordset.Clone See the docs
  5. cheekybuddha

    Why does one formula work, but another very similar one doesn't?

    Where does VBA come in to this?
  6. cheekybuddha

    Why does one formula work, but another very similar one doesn't?

    They are excel formulas, not VBA, Pat
  7. cheekybuddha

    scanning documents

    Did Dvorak delete themself, or have they been banished?
  8. cheekybuddha

    Pb VBA

    Good catch!
  9. cheekybuddha

    Pb VBA

    Peut-être: DoCmd GoToRecord acDataForm, «[fiche-personnes]», «PN = 'Père'» ou: DoCmd GoToRecord acDataForm, «[fiche-personnes]», «PN = '» & Père & «'»
  10. cheekybuddha

    List all song features

    Note we are in the Excel board, so perhaps macro just means VBA here?
  11. cheekybuddha

    Combox uses 'wrong' value list

    Unlikely if bound to a SQLServer BE, no? I agree with you, a sample db would be the only way to track down the issue.
  12. cheekybuddha

    Combox uses 'wrong' value list

    (y)
  13. cheekybuddha

    Combox uses 'wrong' value list

    Do you have any code/events for these controls in your form?
  14. cheekybuddha

    Combox uses 'wrong' value list

    it's probably just a typo, but Common is missing an opening double quote - double-check your actual RowSource, just in case this is causing an issue (unlikely!)
  15. cheekybuddha

    Solved Need help with number as text

    (y) (Though you still will need to escape and double up QUOTE within your input if either Me.Fld1 or Me.Fld2 might contain a QUOTE)
  16. cheekybuddha

    Solved Need help with number as text

    When building strings for SQL you will always have to escape whatever character is used as the string delimiter. Personally I find a pair of single quotes easier to parse mentally than a bank of three or four double quotes! 🤪 Of course, if you are doing any amount of it (building SQL...
  17. cheekybuddha

    Solved Need help with number as text

    Or more concisely still by using a bound form and placing code in the Form's Error event to catch the key violation. You also then no longer need to worry about requerying the form and returning to the same recordset position, delimiting/escaping your inputs etc. etc. But doesn't allow for...
  18. cheekybuddha

    Solved Need help with number as text

    What you posted is actually incorrect - it is difficult to see because you don't use a monospace font to view it. dubbel = "Bestelbon = "' & Me.txtBestelbonNew & '" ^ ^ ^ double quote too soon | | missing double |...
  19. cheekybuddha

    Solved Need help with number as text

    It will prevent an error in case anyone types a single apostrophe in txtBestelbonNew. Yes, you seem to have already found the answer in this other thread. Why are you asking again? Did it not work?
  20. cheekybuddha

    Solved Need help with number as text

    OK, but you are probably creating a lot more work for yourself, where Access would handle everything natively if you used bound forms.
Back
Top Bottom