Currently I have set up a switchboard that when an area is selected that area is automatically filled into the field "Plant". However,when the user clicks on the button to go to the next aval blank record the field "Plant" goes blank. Below is the code on the "Go to next record" button:
Private Sub Command36_Click()
If IsNull(Me![Project Classification]) Then
MsgBox ("Project Classification is Missing, Please Complete"
[Project Classification].SetFocus
Else
If IsNull(Me![Notes]) Then
MsgBox ("Project Description is Needed, Please Complete"
[Notes].SetFocus
Else
Text12.SetFocus
Text14.SetFocus
DoCmd.GoToRecord , , acNewRec
[Project Classification].SetFocus
End If
End If
End Sub
Is there away to have this code also say to keep the value that is currently in [Plant]? Basically set a default for [Plant] until the form is exited. So that if the user goes back to the switchboard and chooses a different area, the new area will be used.
Any suggestions?
Thank you for any and all help,
PBrown
Private Sub Command36_Click()
If IsNull(Me![Project Classification]) Then
MsgBox ("Project Classification is Missing, Please Complete"
[Project Classification].SetFocus
Else
If IsNull(Me![Notes]) Then
MsgBox ("Project Description is Needed, Please Complete"
[Notes].SetFocus
Else
Text12.SetFocus
Text14.SetFocus
DoCmd.GoToRecord , , acNewRec
[Project Classification].SetFocus
End If
End If
End Sub
Is there away to have this code also say to keep the value that is currently in [Plant]? Basically set a default for [Plant] until the form is exited. So that if the user goes back to the switchboard and chooses a different area, the new area will be used.
Any suggestions?
Thank you for any and all help,
PBrown