M
Marco
Hello.
I'm using this code to open a form with a filter/criteria:
DoCmd.OpenForm "41_form_Cria_Planos_Expedicao", , , "Id = " &
Me.[43_form_Visualiza_PlanosExpedicao subform].Form.ID
and then on the form I have a code that checks if the record is closed or
not in order to block all that and preventing to be edited or deleted:
If Me.FechadoQA = True Then
Me.RecordsetType = 2
Else
Me.RecordsetType = 0
End If
What is happening is that when I put the code to check if is closed or not
the filter don't work because the form opens with the first record, like
there was no filter before.
What I'm I doing wrong?
Regards,
Marco
I'm using this code to open a form with a filter/criteria:
DoCmd.OpenForm "41_form_Cria_Planos_Expedicao", , , "Id = " &
Me.[43_form_Visualiza_PlanosExpedicao subform].Form.ID
and then on the form I have a code that checks if the record is closed or
not in order to block all that and preventing to be edited or deleted:
If Me.FechadoQA = True Then
Me.RecordsetType = 2
Else
Me.RecordsetType = 0
End If
What is happening is that when I put the code to check if is closed or not
the filter don't work because the form opens with the first record, like
there was no filter before.
What I'm I doing wrong?
Regards,
Marco