hello
i wrote the following button in a form
but it doesn't go to the if statement at all
can you help me please?
where is my fault?
If Me.Fehlteil.Value = "" Then
DoCmd.OpenForm "frm_logistik_zeitfehlerein_detail_emptyfields", , , acFormDS
Else
On Error GoTo Err_Befehl14_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frm_logistik_zeitfehlerein_detail"
stLinkCriteria = "[Fehlteil]=" & "'" & Me![Fehlteil] & "'"
DoCmd.OpenForm stDocName, acFormDS, , stLinkCriteria
Exit_Befehl14_Click:
Exit Sub
Err_Befehl14_Click:
MsgBox Err.Description
Resume Exit_Befehl14_Click
End If
i wrote the following button in a form
but it doesn't go to the if statement at all
can you help me please?
where is my fault?
If Me.Fehlteil.Value = "" Then
DoCmd.OpenForm "frm_logistik_zeitfehlerein_detail_emptyfields", , , acFormDS
Else
On Error GoTo Err_Befehl14_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frm_logistik_zeitfehlerein_detail"
stLinkCriteria = "[Fehlteil]=" & "'" & Me![Fehlteil] & "'"
DoCmd.OpenForm stDocName, acFormDS, , stLinkCriteria
Exit_Befehl14_Click:
Exit Sub
Err_Befehl14_Click:
MsgBox Err.Description
Resume Exit_Befehl14_Click
End If