Posts by troy79

    MODERATOR NOTICE: This topic has also been posted on other sites and may already have an answer elsewhere. Please take this into consideration when answering this question


    Hi.


    I have a VBA macro that I have been using to update a roster with planned and unplanned leave.


    What I was hoping to do was to have the ability within the same code or a separate code to:

    - Delete requests that are no longer required

    or

    - Change the type of planned or unplanned leave


    Here is the script that I use to add planned and unplanned leave, any help in making the above changes I would really appreciate.




    Hi.



    I currently have a VBA Script that will create new records within a SQL table directly from excel.
    What I was hoping if there was a way to modify the below so it can change from a create to a modify/update of exisitng records in the SQL table.
    The unique key will be PP_REFERNCE in all cases
    So for example what the front end user will do is populate the PP_REFERENCE ID in cell A2 and then update the cells that they want changed in the SQL table.


    PP_REFERENCE DIRECTOR_NAME DIRECTOR_STATUS
    1234 DAVE APPROVED
    4567 MARK PENDING

    So what ever was in DIRECTOR_NAME before will now be replaced by the above from excel in the existing SQL table against the PP_REFERENCE