edgarchado
Technical User
Hi all,
I am Having trouble with an update statement.
I have a form with a list which populates through a simple search. Once It populates, I double click on one of the items.
When I double click, I would like to update a record in a table based on records in another table.
I use the following statement.
SQL2 = "Update tblTarjetas Set Ultima_Entrega_a = tblHeladera.Entregada_a where (Select tblheladera.Entregada_a From tblHeladera where N_Tarjeta = " & Me.lstPedido & " and tblHeladera.Reingreso <> False and N_Tarjeta = " & Me.lstPedido & ";"
DoCmd.RunSQL SQL2
I am Having trouble with an update statement.
I have a form with a list which populates through a simple search. Once It populates, I double click on one of the items.
When I double click, I would like to update a record in a table based on records in another table.
I use the following statement.
SQL2 = "Update tblTarjetas Set Ultima_Entrega_a = tblHeladera.Entregada_a where (Select tblheladera.Entregada_a From tblHeladera where N_Tarjeta = " & Me.lstPedido & " and tblHeladera.Reingreso <> False and N_Tarjeta = " & Me.lstPedido & ";"
DoCmd.RunSQL SQL2