using Max function (SQL)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mzgee
    New Member
    • Feb 2007
    • 1

    #1

    using Max function (SQL)

    Can i ask for a sample format using MAX ( sql query) in vb 6.0
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    Hi. Use of MAX() is the same for vb or any language because it is used in embedded SQL statements e.g.
    Code:
    SELECT MAX([fieldname]) AS TheMax FROM [tablename]

    Comment

    • arunbalait
      New Member
      • Feb 2007
      • 164

      #3
      Hi

      Its same as that of using other sql statements in VB. But before that declare oledb command or recordset.

      Comment

      Working...