|
-
Feb 4th, 2000, 12:51 PM
#2
Hyperactive Member
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.
----------------------
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|