Hello.. Well I got a product picking with a checkbox.. when I click it.. if another checkbox from the record is marked as "blocked" then it would ask if you really want to pick that product.. If dont it will Undo. But if yes it will mark a field with a textbox content and checkbox another field inside record.
It works when the product its not "blocked" but when it is, it will display the question but it will not mark and writte the field.
Check it out, maybe its not "Me" or it has to be a "currentrecord" or doin it via SQL.
S.O.S
It works when the product its not "blocked" but when it is, it will display the question but it will not mark and writte the field.
Check it out, maybe its not "Me" or it has to be a "currentrecord" or doin it via SQL.
S.O.S
Code:
Private Sub SalidaAlmacen_Click()
If muestreo = True Then
respuesta = MsgBox("Este Material esta almacenado como MUESTREADO... ¿Desea Embarcarlo?", vbQuestion + vbYesNo, "buhorus: ¿Desea Embarcar Material MUESTREADO?")
If respuesta = vbNo Then Me.Undo
Exit Sub
End If
If respuesta = vbYes Then
Me!SalidaNum = Forms!SALIDASarmar!("[SalidaAuto]").Value
Me!EnAlmacen = False
Me.Requery
Forms!SALIDASarmar!SALIDASderechasubform.Requery
Exit Sub
End If
Me!SalidaNum = Forms!SALIDASarmar!("[SalidaAuto]").Value
Me!EnAlmacen = False
Me.Requery
Forms!SALIDASarmar!SALIDASderechasubform.Requery
End Sub