Sorry but I am not getting this:
I went to the Dispatch Date field
John said:
And just one last question, I added the field End Date to my table, I put it
on the form and entered the line =DateAdd("d", 14, [Dispatch Date]) and can
see the right date in the field when I view the form. But when I view the
table the End date column is empty, why is the date not going into the table?
John said:
Sorry but I am not getting this:
I went to the Dispatch Date field
After update
Code builder and added your stuff to the bottom... The two fields are
Dispatch Date and End Date
Below is everything on the code page
Private Sub Button75_Click()
On Error GoTo Err_Button75_Click
DoCmd.GoToRecord , , A_FIRST
Exit_Button75_Click:
Exit Sub
Err_Button75_Click:
MsgBox Error$
Resume Exit_Button75_Click
End Sub
Private Sub Button76_Click()
On Error GoTo Err_Button76_Click
DoCmd.GoToRecord , , A_LAST
Exit_Button76_Click:
Exit Sub
Err_Button76_Click:
MsgBox Error$
Resume Exit_Button76_Click
End Sub
Private Sub Button77_Click()
On Error GoTo Err_Button77_Click
DoCmd.GoToRecord , , A_NEXT
Exit_Button77_Click:
Exit Sub
Err_Button77_Click:
MsgBox Error$
Resume Exit_Button77_Click
End Sub
Private Sub Button83_Click()
On Error GoTo Err_Button83_Click
DoCmd.GoToRecord , , A_PREVIOUS
Exit_Button83_Click:
Exit Sub
Err_Button83_Click:
MsgBox Error$
Resume Exit_Button83_Click
End Sub
Private Sub Button85_Click()
On Error GoTo Err_Button85_Click
DoCmd.Close
Exit_Button85_Click:
Exit Sub
Err_Button85_Click:
MsgBox Error$
Resume Exit_Button85_Click
End Sub
Private Sub Button88_Click()
On Error GoTo Err_Button88_Click
DoCmd.DoMenuItem A_FORMBAR, A_FILE, A_SAVERECORD, , A_MENU_VER20
Exit_Button88_Click:
Exit Sub
Err_Button88_Click:
MsgBox Error$
Resume Exit_Button88_Click
End Sub
Private Sub Button90_Click()
On Error GoTo Err_Button90_Click
DoCmd.DoMenuItem A_FORMBAR, A_EDITMENU, 10, , A_MENU_VER20
Exit_Button90_Click:
Exit Sub
Err_Button90_Click:
MsgBox Error$
Resume Exit_Button90_Click
End Sub
Private Sub Find_Resource_Order__Click()
On Error GoTo Err_Find_Resource_Order__Click
DoCmd.DoMenuItem A_FORMBAR, A_EDITMENU, 10, , A_MENU_VER20
Exit_Find_Resource_Order__Click:
Exit Sub
Err_Find_Resource_Order__Click:
MsgBox Error$
Resume Exit_Find_Resource_Order__Click
End Sub
Private Sub Resource_Confirmatio_Click()
On Error GoTo Err_Resource_Confirmatio_Click
DoCmd.Close
Exit_Resource_Confirmatio_Click:
Exit Sub
Err_Resource_Confirmatio_Click:
MsgBox Error$
Resume Exit_Resource_Confirmatio_Click
End Sub
Private Sub Command195_Click()
On Error GoTo Err_Command195_Click
Screen.PreviousControl.SetFocus
DoCmd.FindNext
Exit_Command195_Click:
Exit Sub
Err_Command195_Click:
MsgBox Err.Description
Resume Exit_Command195_Click
End Sub
Private Sub Find_Resource_Click()
End Sub
Private Sub Command223_Click()
On Error GoTo Err_Command223_Click
Screen.PreviousControl.SetFocus
DoCmd.FindNext
Exit_Command223_Click:
Exit Sub
Err_Command223_Click:
MsgBox Err.Description
Resume Exit_Command223_Click
End Sub
Private Sub Command224_Click()
On Error GoTo Err_Command224_Click
DoCmd.GoToRecord , , acFirst
Exit_Command224_Click:
Exit Sub
Err_Command224_Click:
MsgBox Err.Description
Resume Exit_Command224_Click
End Sub
Private Sub Command225_Click()
On Error GoTo Err_Command225_Click
DoCmd.GoToRecord , , acPrevious
Exit_Command225_Click:
Exit Sub
Err_Command225_Click:
MsgBox Err.Description
Resume Exit_Command225_Click
End Sub
Private Sub Command226_Click()
On Error GoTo Err_Command226_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_Command226_Click:
Exit Sub
Err_Command226_Click:
MsgBox Err.Description
Resume Exit_Command226_Click
End Sub
Private Sub Command227_Click()
On Error GoTo Err_Command227_Click
DoCmd.GoToRecord , , acNext
Exit_Command227_Click:
Exit Sub
Err_Command227_Click:
MsgBox Err.Description
Resume Exit_Command227_Click
End Sub
Private Sub Command228_Click()
On Error GoTo Err_Command228_Click
DoCmd.GoToRecord , , acLast
Exit_Command228_Click:
Exit Sub
Err_Command228_Click:
MsgBox Err.Description
Resume Exit_Command228_Click
End Sub
Private Sub Command229_Click()
On Error GoTo Err_Command229_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Exit_Command229_Click:
Exit Sub
Err_Command229_Click:
MsgBox Err.Description
Resume Exit_Command229_Click
End Sub
Private Sub Dispatch_Date_Update(Cancel As Integer)End Sub
Private Sub DISPATCH_DATE_AfterUpdate()
End Sub