Solved Message when last record is saved (1 Viewer)

Number11

Member
Local time
Today, 11:53
Joined
Jan 29, 2020
Messages
607
Is it possible to have a message box when the last record is reached and saved to say something like
"All Completed" - Job done!
 

theDBguy

I’m here to help
Staff member
Local time
Today, 03:53
Joined
Oct 29, 2018
Messages
21,454
On a form or a recordset? How is the user moving from one record to the next?
 

Number11

Member
Local time
Today, 11:53
Joined
Jan 29, 2020
Messages
607
On a form or a recordset? How is the user moving from one record to the next?

oh yes its on a form user is clicking on a button to get next record
 

theDBguy

I’m here to help
Staff member
Local time
Today, 03:53
Joined
Oct 29, 2018
Messages
21,454
its...
DoCmd.RunCommand (acCmdSaveRecord)
Me.Recordset.MoveNext
Okay. My guess is you're asking this question because when the user finishes the last record, they're getting an error message, correct? If so, all you need to do is add an error handler to your code.
 

Number11

Member
Local time
Today, 11:53
Joined
Jan 29, 2020
Messages
607
Okay. My guess is you're asking this question because when the user finishes the last record, they're getting an error message, correct? If so, all you need to do is add an error handler to your code.

yes thats correct but i do what to also show a message so they know all records have been completed
 

theDBguy

I’m here to help
Staff member
Local time
Today, 03:53
Joined
Oct 29, 2018
Messages
21,454
yes thats correct but i do what to also show a message so they know all records have been completed
Yes, that's what you would do in the error handler, show your own message. Now, could you please remind me what the error number is when they hit the last record?
 

Users who are viewing this thread

Top Bottom