ryan311 -7 Posting Whiz in Training

i have a code in stored procedure like this

if exists (select code from dbo.tbl_product where code = @prodcode)
Begin
	select 'Product Code Already Exist' as msg
	return
End

my problem is how can i show this msg in visual basic?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.