PC Review


Reply
Thread Tools Rate Thread

insert message Help!

 
 
Russ Wittmann
Guest
Posts: n/a
 
      10th Dec 2003
I'm working on a small sql project to insert some job numbers, what I need
to do is tell the user in a message box that the insert was either
successful or unsuccessful, I am curious the best way to do this? would I
need to use some if then statements? I would appreciate any help on this.
Right no the code works but I cant figure out how to do a message retuning
successful.


Thank You....

[MY CODE]

'open sql connection...
SqlConn.Open()

'sql insert command(stored proc) & parameters...
SqlInsertCommand1.Parameters("@JobNumber").Value = txtJobNumber.Text

'sql execute command....
SqlInsertCommand1.ExecuteNonQuery()

'close sql connection...
SqlConn.Close()



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
insert objects in .xlsx fails with message "cannot insert object" clacketwood Microsoft Excel Misc 0 18th Feb 2010 01:16 PM
Insert a URL into a new message eXistenZ Windows Vista Mail 2 21st Jul 2009 09:15 PM
Insert message from Inbox into new Outlook message =?Utf-8?B?TGl6?= Microsoft Outlook Discussion 0 17th Jul 2006 10:21 PM
Re: Inserting Outlook items (e.g. messages) into a new message used to be easy. Do I really have to save a message to my hard drive first to insert it into a new email in Outlook 2002? Jocelyn Fiorello [MVP - Outlook] Microsoft Outlook Discussion 0 9th Mar 2004 07:05 AM
insert message help! Russ Wittmann Microsoft ADO .NET 9 11th Dec 2003 08:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:49 PM.