dim datevar = dbScalarvalue("select date from tbl where timstampcol=max(timestampcol)") 'dbScalarvalue function take query and give result from sql, database connection and all that will manage internally by function.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)