We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Dim con As New System.Data.OleDb.OleDbConnection Dim myCommand As New System.Data.OleDb.OleDbCommand Dim myPath As String Dim MaxId As Integer myPath = Server.MapPath("hayat.mdb") con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data source=" & myPath & ";" myCommand.CommandText = "select MAX(empid) from empdetails" myCommand.Connection = con Try con.Open() MaxId = myCommand.ExecuteScalar() lbllastid.Text = "The last Emp. ID stored is : " & MaxId.ToString Catch err As Exception lblmsg.Text = err.Message Finally con.Close() End Try
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.