Forum Discussion
Tony2021
Feb 18, 2022Iron Contributor
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...
- 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
Feb 18, 2022
Hi,
You should explain what you want to achieve, because a WHERE clause for the target table in an append query is not useful. What do you want to filter by the txtID expression?
Servus
Karl
************
Access News
Access DevCon