Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Else
If Not Me.lboStadions = "" Then strWhere = "[Merk] = '" & Me.lboStadions.Value & "' "
If Me.chkSelectieA = -1 Then strCheck = strCheck & " ([SelectieA] & "" <> "
If Me.chkSelectieB = -1 Then
If strCheck & "" <> "" Then strCheck = strCheck & " AND " Else: strCheck = " ("
strCheck = strCheck & " [SelectieB] & "" <> "
End If
If Me.chkSelectieC= -1 Then
If strCheck & "" <> "" Then strCheck = strCheck & " AND " Else: strCheck = " ("
strCheck = strCheck & " [SelectieC] & "" <> "
End If
End If
If strCheck & "" <> "" Then strCheck = strCheck & ")"
If Not Me.lboStadions = "" Then strWhere = "[Merk] = '" & Me.lboStadions.Value & "' "
If Me.chkSelectieA = -1 Then strCheck = strCheck & " ([SelectieA] <> " & Chr(34) & Chr(34)
If Me.chkSelectieB = -1 Then
If strCheck & "" <> "" Then strCheck = strCheck & " AND " Else: strCheck = " ("
strCheck = strCheck & " [SelectieB] <> """""
End If
If Me.chkSelectieC = -1 Then
If strCheck & "" <> "" Then strCheck = strCheck & " AND " Else: strCheck = " ("
strCheck = strCheck & " [SelectieC] <> """""
End If
Dim strWhere As String, strCheck As String
strWhere = ""
strCheck = ""
If cboMerk = True And Nz(Me.lboMerken, "") = "" Then
MsgBox "Geef het merk aan", vbInformation"
Me.lboMerken.SetFocus
Exit Sub
Else
If Not Me.lboMerken = "" Then strWhere = "[Merk] = '" & Me.lboMerken.Value & "' "
If Me.cboKoelmotor = -1 Then strCheck = strCheck & " ([Koelmotor] <> " & Chr(34) & Chr(34)
If Me.cboKraan = -1 Then
If strCheck & "" <> "" Then strCheck = strCheck & " AND " Else: strCheck = " ("
strCheck = strCheck & " [Kraan] <> """""
End If
If Me.cboLaadklep = -1 Then
If strCheck & "" <> "" Then strCheck = strCheck & " AND " Else: strCheck = " ("
strCheck = strCheck & " [Laadklep] <> """""
End If
End If
If strCheck & "" <> "" Then strCheck = strCheck & ")"
strWhere = strWhere & strCheck
DoCmd.OpenReport "rptWagenparkOverzicht", acPreview, , strWhere
If cboMerk = True And Nz(Me.lboMerken, "") = "" Then
MsgBox "Geef het merk aan", vbInformation
Me.lboMerken.SetFocus
Exit Sub
End If
If Not Me.lboMerken = "" Then strWhere = "[Merk] = '" & Me.lboMerken.Value & "' "
If Me.cboKoelmotor = -1 Then strCheck = strCheck & " ([Koelmotor] <> " & Chr(34) & Chr(34)
If Me.cboKraan = -1 Then
If strCheck & "" <> "" Then strCheck = strCheck & " AND (" Else: strCheck = " ("
strCheck = strCheck & " [Kraan] <> " & Chr(34) & Chr(34) & ")"
End If
If Me.cboLaadklep = -1 Then
If strCheck & "" <> "" Then strCheck = strCheck & " AND (" Else: strCheck = " ("
strCheck = strCheck & " [Laadklep] <> " & Chr(34) & Chr(34) & ")"
End If
Msgbox strCheck
strWhere = strWhere & strCheck
DoCmd.OpenReport "rptWagenparkOverzicht", acPreview, , strWhere
If Not Me.lboMerken = "" Then strWhere = "([Merk] = '" & Me.lboMerken.Value & "') "
If Me.cboKoelmotor = -1 Then strCheck = strCheck & " ([Koelmotor] <> " & Chr(34) & Chr(34) & ")"
If Me.cboKraan = -1 Then
If strCheck & "" <> "" Then strCheck = strCheck & " AND (" Else: strCheck = " ("
strCheck = strCheck & " [Kraan] <> " & Chr(34) & Chr(34) & ")"
End If
If Me.cboLaadklep = -1 Then
If strCheck & "" <> "" Then strCheck = strCheck & " AND (" Else: strCheck = " ("
strCheck = strCheck & " [Laadklep] <> " & Chr(34) & Chr(34) & ")"
End If
If strCheck & "" <> "" Then strCheck = " AND " & strCheck
Dim tmp
tmp=Inputbox("","",strCheck)
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.