Forum Discussion

Tony2021's avatar
Tony2021
Iron Contributor
Feb 18, 2022
Solved

Add Where Clause

Hello experts, I am trying to add a where clause to the below (red text).  It is my code so yes it is not correct.  Do you see where I am wrong?    Dim strSQL As String DoCmd.RunCommand acCmdSaveR...
  • Karl_Donaubauer's avatar
    Karl_Donaubauer
    Feb 18, 2022

    Hi,

     

    If I understand right then you are looking for:

     

    strSQL = "UPDATE tblPmtProposal " & _

    " SET IDBankAcctfk = " & Me!cboCurrency.Column(1) & _

    " WHERE ID = " & Me!txtID

     

    Servus
    Karl
    ************
    Access News
    Access DevCon

     

Resources