update TableMainform set SalidaAlmacen=False where ShipmentNo='KTN2009000001' and OrderNo = '000001'
update TableSubform set SalidaAlmacen=False where ShipmentNo='KTN2009000001' and OrderNo = '000001'
private sub button_click()
dim strSql as string
strsql = "update TableMainform set SalidaAlmacen=False " & _
" where ShipmentNo='" & [B]Forms!Ship!Shipments[/B] & "' " & _
" and OrderNo = '" & [B]Forms!Ship!OrderNo[/B] & "'"
currentdb.execute strsql
end sub
private sub button_click()
dim strSql as string
strsql = "update TableMainform set SalidaAlmacen=False " & _
" where ShipmentNo='" & Forms!Ship!Shipments & "' " & _
" and OrderNo = " & Forms!Ship!OrderNo
currentdb.execute strsql
end sub
So the problem is solved?
Private Sub Comando40_Click()
Dim strSql As String
strSql = "update BASE set SalidaAlmacen=False " & _
" where Shipment=" & Forms!salidas!Shipment & ""
CurrentDb.Execute strSql
End Sub
Its been an error '3061' in the runtime..
Few parameters.. 2 expected.