Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
dim dBase as dao.database
[red]dim rec1 as dao.recordset[/red]
dim strSQL as string
dim intNumber as integer
set dBase=CurrentDb
strSQL = "SELECT Max(Table.Field)[red] as myfield[/red] FROM Table"
[red] set rec1 = dbase.openrecordset(strSQL)[/red]
intNumber = [red]rec1.Fields("myfield")
rec1.close[/red]
set dBase=nothing