(Type your message here)
--------------------------------
From: venkat g
as soon as i click save button in should save the data and form must be refresh
ihave written as
me.refresh
my coding is as follows
If (txtget.Text = "Add") Then
ObjCon.Open()
objAdapt = New OleDbDataAdapte r("select * from DB_KEYINFO", ObjCon)
objAdapt.Fill(d s)
ObjDtview = ds.Tables(0).De faultView
ObjDtview.RowFi lter = " [Keyno] = '" & CInt(txtKeyno.T ext) & " '"
If (ObjDtview.Coun t > 0) Then
MsgBox("The Record Is Alreday Exists")
Me.Refresh()
ObjCon.Close()
Else
'ObjCon.Open()
ObjCmd.Connecti on = ObjCon
ObjCmd.CommandT ype = CommandType.Tex t
ObjCmd.CommandT ext = "Insert into DB_KEYINFO Values( '" & txtname.Text & "'," & txtpsno.Text & ",'" & txtdepartment.T ext & "','" & cmbfloor.Select edItem.text & "'," & txtKeyno.Text & ")"
ObjCmd.ExecuteN onQuery()
MsgBox("Records Saved successfully")
ObjCon.Close()
End If
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>42jOgrcuxE6 pG3AVbxg2RA==</Id>