Search results

  1. cheekybuddha

    Solved Action Query Parameter Numerical Comparissons In VBA

    Sorry, typo, it should read: (where one is a parameter) IE, id you are just incrementing then you do not need the parameter as you can hardcode Sortorder + 1 But, using the parameter you can pass 1 or -1 to increment/decrement with the same statement.
  2. cheekybuddha

    Solved Action Query Parameter Numerical Comparissons In VBA

    Normally, when changing sort orders you need min and max between which to increment/decrement Eg, if you have 10 items, and you move item 8 to position 4, then you need to only increment items 4 - 7 (each +1) If you move item 5 to position 7, you then need to decrement items 6 and 7 by -1 Make...
  3. cheekybuddha

    Solved Action Query Parameter Numerical Comparissons In VBA

    @dalski - I edited an error in the SQL after you 'liked'/saw my post - make sure you refresh
  4. cheekybuddha

    Solved Action Query Parameter Numerical Comparissons In VBA

    Really you only need 2 parameters since the amount of increment is always [SortOrder] + 1; one for the ID of the record, and one to mark where to start the increment. But you can have on for if you are incrementing or decrementing You could have your query SQL like this: UPDATE Tender-HeadersQ...
  5. cheekybuddha

    Solved Action Query Parameter Numerical Comparissons In VBA

    What is the SQL of query Tender-PgHeadersAdjustSortOrderAQ ? Click on the SQL view button and copy and paste the SQL here
  6. cheekybuddha

    Solved Action Query Parameter Numerical Comparissons In VBA

    What is the SQL of query Tender-PgHeadersAdjustSortOrderAQ ?
  7. cheekybuddha

    Solved Action Query Parameter Numerical Comparissons In VBA

    Minty is right - put the operators in the actual SQL. Just pass values in the parameters
  8. cheekybuddha

    Expression After Update you entered as the property setting produced the following error

    Have you checked your References to see if any are marked as missing?
  9. cheekybuddha

    Solved Class Properties Assigned From Procedures

    You just have to match to the input type to the return type: Eg Public Property Let PropName(NewValue As Long) ' ... End Property Public Property Get PropName() As Long ' ... End Property ' OR: Public Property Let PropName(NewValue) ' implicit Variant ' ... End Property Public...
  10. cheekybuddha

    Solved Class Properties Assigned From Procedures

    Don't you have to declare the property type in the signature? Public Property Get PropName() As Long
  11. cheekybuddha

    Calculated Field Error

    I can assure you @Peter Hibbs is no novice! 😂
  12. cheekybuddha

    Calculated Field Error

    Sorry, I wasn't aware that you could create a UDF without VBA.
  13. cheekybuddha

    Calculated Field Error

    Yes, @MajP already said that in Post #7
  14. cheekybuddha

    Solved How to handle ' in sql string

    AKA 'single quote'
  15. 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.
  16. cheekybuddha

    Solved How to handle ' in sql string

    How so?
  17. 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.
  18. 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
  19. cheekybuddha

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

    Where does VBA come in to this?
  20. cheekybuddha

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

    They are excel formulas, not VBA, Pat
Back
Top Bottom