quick way:

dim strBtn as string

in the General Declarations of your form

whne click changed button:

strBtn = "Changed"

when New

strBtn = "New"


for the Saved button:

if strBtn = "Changed" then
elseif strBtn = "New"


Or you could change the caption on the button. When they change a record, you're actually opdating it so changethe Caption to "Update" then in the Saved button's Click event do:

if cmdSaved.caption = "Update" then
'do changed routine
else
'do new routine.
end if

Either way would work.

------------------
----------------------
I'm really easy to get along with once you people learn to
worship me.
----------------------