Microsoft
Software
Hardware
Network
Question : Sorting records in VBA
Hello Experts,
I use the following code to filter the records displayed in an Access form using the following SQL statement:
Me.RecordSource = "SELECT * FROM tblMain WHERE mMonth ='" & Me.txtCurrentMonth.Value & "'"
And use the following select statement to unfilter:
Me.RecordSource = "SELECT * FROM tblMain"
What I need is to sort the records back to their sorted status by Date, after removing the filter, using the txtDate textBox which contains the date for each record.
Thank you
Answer : Sorting records in VBA
then use this
Me.RecordSource = "select * from tblMain order by dDate"
Random Solutions
default printing on TS, server 2008 x64, xpsp3 w/rdp7
ASP Error trying to update Access DB
Showing the performance of VB.NET within Visual Studio 2010
self.close
SMC8648T Tigerswitch factory reset
Exchange 2007 Resource Mailbox hide organisers name
use partitions in old code
Bang vs. Dot in SQL statements
MYSQL custom Sorting
2 HWIC-4ESW cards on a cisco router