Click here to Skip to main content
16,004,778 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
insert or update method in one single function

I have one Form With one button only i.e save
SaveButton(both insert+Edit Function)
plz help..
Posted

take one indicator and then do your operation, based on that change the button name..

All the Best
Gopinath Natarajan
 
Share this answer
 
you can use sql merge statement in which if data not already in the table it will insert if available it will update.search more on merge statement it may helps you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900