Shared Function lastpost(ByVal title As String) As Results Dim con As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Documents and Settings\perkinj\My Documents\Visual Studio 2010\WebSites\runningprofiles\forums\forum.mdb;") Dim cmd As New OleDbCommand cmd.Connection = con cmd.Parameters.AddWithValue("@title", title) Try con.Open() Dim Res As Results cmd.CommandText = "Select Count(*) From forum where Forum =@title and numrep <> 0 " Res.Result2 = cmd.ExecuteScalar() cmd.CommandText = "Select title + '|' + LastPoster +'|' + Format(lasttime, 'dd/mm/yyyy hh:mm:ss') from forum where Forum =@title order by Format(lasttime, 'dd/mm/yyyy hh:mm:ss') ASC" Res.Result3 = cmd.ExecuteScalar() Return (Res) Catch ex As Exception Throw ex Finally con.Close() End Try End Function
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE