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 cn As New adodb.Connection
Dim rs As New adodb.Recordset
Set cn = CurrentProject.Connection
strsql = "SELECT TOP 1 * FROM tbl1 " & _
"ORDER BY [Date Paid] DESC"
rs.Open strsql, cn
rs.MoveFirst
txt1 = rs.Fields.Item("Date Paid")
rs.Close
cn.Close
Set rs = Nothing
Set cn = Nothing
Dim cn As New adodb.Connection
Dim rs As New adodb.Recordset
Set cn = CurrentProject.Connection
[b]strsql = "SELECT TOP 1 * FROM tbl1 " & _
"ORDER BY [Date Paid] DESC " & _
"WHERE [Invoice Number] = " & txtInvoiceNumber
[/b]
rs.Open strsql, cn
rs.MoveFirst
txt1 = rs.Fields.Item("Date Paid")
rs.Close
cn.Close
Set rs = Nothing
Set cn = Nothing