Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Compare Database
Option Explicit
Private Sub Form_Load()
Me.Filter = "[Booking_Pickup_ID] = " & Forms!Booking_Pickup![Booking_Pickup_ID]
Me.FilterOn = True
Me.[Booking_Pickup_ID].DefaultValue = Forms!Booking_Pickup![Booking_Pickup_ID]
End Sub
Private Sub Form_Current()
If (Me.NewRecord) Then
Me.bookf = Me!bookf.ItemData(0)
End If
End Sub
Private Sub Pickup_Click()
On Error GoTo Err_Pickup_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Booking_Pickup"
stLinkCriteria = "[Booking_ID]=" & Me![Booking_ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Pickup_Click:
Exit Sub
Err_Pickup_Click:
MsgBox Err.Description
Resume Exit_Pickup_Click
End Sub
Private Sub Form_Load()
Me.Filter = "[Booking_ID] = " & Forms!Booking_Main![Booking_ID]
Me.FilterOn = True
Me.[Booking_ID].DefaultValue = Forms!Booking_Main![Booking_ID]
End Sub
Option Compare Database
Option Explicit
Private Sub Form_Load()
Me.[Booking_Pickup_ID].DefaultValue = Forms!Booking_Pickup![Booking_Pickup_ID]
End Sub
Private Sub Form_Current()
If (Me.NewRecord) Then
Me.bookf = Me!bookf.ItemData(0)
End If
End Sub
Private Sub Form_Current()
If (Me.NewRecord) Then
Me.bookf = Me!bookf.ItemData(0)
Me.books = Me!books.ItemData(0)
End If
End Sub
Option Compare Database
Option Explicit
Private Sub Form_Load()
Me.[Booking_Pickup_Customer_ID].DefaultValue = Forms!Booking_Pickup_Customer![Booking_Pickup_Customer_ID]
End Sub
Option Compare Database
Option Explicit
Private Sub Form_Load()
Me.[Booking_Pickup_ID].DefaultValue = Forms!Booking_Pickup![Booking_Pickup_ID]
End Sub
Private Sub Form_Current()
If (Me.NewRecord) Then
Me.bookf = Me!bookf.ItemData(0)
End If
End Sub
[b]
Private Sub close_Click()
Dim Msg As String, Style As Integer, Title As String
Dim stDocName As String
Dim stLinkCriteria As String
Msg = "Do you want to save these details?"
Style = vbInformation + vbYesNo
Title = "Save Form Dialog . . ."
If MsgBox(Msg, Style, Title) = vbYes Then
stDocName = "Booking_Pickup_InFlight"
stLinkCriteria = "[Booking_Pickup_Customer_ID]=" & Me![Booking_Pickup_Customer_ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.close acForm, "Booking_Pickup_Customer", acSaveYes
Else
DoCmd.close acForm, "Booking_Pickup_Customer", acSaveNo
End If
End Sub[/b]
Option Compare Database
Option Explicit
Private Sub Form_Load()
Me.[Booking_Pickup_ID].DefaultValue = Forms!Booking_Pickup![Booking_Pickup_ID]
End Sub
Private Sub Form_Current()
If (Me.NewRecord) Then
Me.bookf = Me!bookf.ItemData(0)
End If
End Sub
Private Sub InFlight_Click()
On Error GoTo Err_InFlight_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Booking_Pickup_InFlight"
stLinkCriteria = "[Booking_Pickup_Customer_ID]=" & Me![Booking_Pickup_Customer_ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.close acForm, "Booking_Pickup_Customer", acSaveYes
Exit_InFlight_Click:
Exit Sub
Err_InFlight_Click:
MsgBox Err.InFlight
Resume Exit_InFlight_Click
End Sub
Option Compare Database
Option Explicit
Private Sub Form_Load()
Me.[Booking_Destination_ID].DefaultValue = Forms!Booking_Destination![Booking_Destination_ID]
End Sub
Private Sub Form_Current()
If (Me.NewRecord) Then
Me.bookf = Me!bookf.ItemData(0)
End If
End Sub
Private Sub Outflight_Click()
On Error GoTo Err_Outflight_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Booking_Destination_OutFlight"
stLinkCriteria = "[Booking_Destination_Customer_ID]=" & Me![Booking_Destination_Customer_ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.close acForm, "Booking_Destination_Customer", acSaveYes
Exit_Outflight_Click:
Exit Sub
Err_Outflight_Click:
MsgBox Err.Outflight
Resume Exit_Outflight_Click
End Sub
SELECT tblPAY_EMPLOYEES_Extension_UserCode12.ID, tblPAY_EMPLOYEES_Extension_UserCode12.Description FROM tblPAY_EMPLOYEES_Extension_UserCode12;
*Column Width = 0";1", Bound Column = 1
Private Sub chkTerm_Click()
'Set Viewable Tab
TabActions.Pages(0).Visible = False
TabActions.Pages(1).Visible = False
TabActions.Pages(2).Visible = False
TabActions.Pages(3).Visible = False
TabActions.Pages(4).Visible = False
TabActions.Pages(5).Visible = True
TabActions.Pages(6).Visible = False
'reset click values
chkHire.Value = 0
chkRehire.Value = 0
chkWage.Value = 0
chkTransfer.Value = 0
chkLOA.Value = 0
'chkTerm.Value = -1
chkOther.Value = 0
'set Page values
txtTermDate.Value = Date
txtTermLastDay.Value = [UserCodeT_11]
chkEligibleRehire.Value = [EligibleForRehire]
Me.comboTermFinalCheck = Me!comboTermFinalCheck.ItemData([UserCodeL_12] - 1)
End Sub
=[Forms]![frmByChris_PersonnelActionNotice]![comboTermFinalCheck]