code is as such:
Private Sub Form_Activate()
DoCmd.GoToRecord , , acNewRec
txtSN.SetFocus
End Sub
Private Sub cmdUpdate_Click()
If Me![chkDead] = True Then
Me![txtDescript] = "Dead"
End If
DoCmd.GoToRecord , , acLast
Exit Sub
There is a Serial Number textbox, a Other Problem Description text
box, a number of checkboxes for specific problems with the equipment,
and a Command Button tied to a Database, the Serial Number textbox is
bound to a SerialNumber field, and the Other Problem Description text
box is tied to the Problem field.
I put Allen's coding after the DoCmd.GoToRecord , , acLast line of
code and it seems to work fine.
I do have one other thing I need to do, which is to pop up a message
box if there is no Serial Number entered into the Serial Number
textbox and not insert the data, as it would be invalid. I have tried
putting Msgbox coding in about everywhere I can think of with no
success. When I make the SerialNumber field in the Database required,
a message box pops up, but it is not user friendly. Any help or
suggestions with this would be helpful
On 6 Feb 2006 21:02:45 -0800,
pa***********@libero.it wrote:
Nice try Allen. Very good!
Stephen why not posting some code so we can look better into it ?
-Pam