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.
Ja, dat kan. Begin met het formulier dicht te zetten (eigenschappen op tabblad <Gegevens>. Check vervolgens met een functie die je bij elk veld dat ingevuld moet worden of aan de voorwaarden is voldaan, en als dat zo is pas je de instellingen van het subformulier aan zodat het bewerkt kan worden.
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull(Me.[YourControlName]) Then
Cancel = True
MsgBox "You must enter a value for 'YourControlNameOrYourDescription'. Please make a valid entry or press ESC to Cancel"
'You could set the focus on the specific control if your wish, change the background color, ...
End If
End Sub
Private Sub Knop19_Click()
Dim ctl As Control
Dim i As Integer
For Each ctl In Me.Controls
If Left(ctl.Name, 3) = "txt" Then
If Not Me(ctl.Name) = vbNullString Then i = i + 1
End If
Next ctl
If i < 10 Then MsgBox "Niet voldoende controls ingevuld" Else: MsgBox "Prima!"
End Sub
If Me.cboSalesRep = "" Then
MsgBox "ClientStatus has not been completed, please complete before proceeding"
DoCmd.GoToControl "cboSalesRep"
End If
Private Sub cboCompany_Click()
If IsNull(Me.cboSalesRep) Then
Me.cboCompany.Locked = False
Else: Me.cboCompany.Locked = True
End If
End Sub
Private Sub cmdSave_Click()
If Me.cboSalesRep = "" Then
MsgBox "Orderform (Champrix Rep) has not been completed, please complete before proceeding"
DoCmd.GoToControl "cboSalesRep"
End If
If Me.cboCompany = "" Then
MsgBox "Orderform (Customer) has not been completed, please complete before proceeding"
DoCmd.GoToControl "cboCompany"
End If
If Me.cboCredit = "" Then
MsgBox "Orderform (Payment) has not been completed, please complete before proceeding"
DoCmd.GoToControl "cboCredit"
End If
If Me.cboFreight = "" Then
MsgBox "Orderform (Destination) has not been completed, please complete before proceeding"
DoCmd.GoToControl "cboFreight"
End If
End Sub
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.