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
Exception from HRESULT: 0x800A03EC Interop Open Excel Workbook
Word Mail Merge from Access Table Problem
F2 / F3 Keys don't produce desired result
Simplest way to change Windows Server 2008 R2 password complexity requirements?
How to route to PC in same physical network but a different IP Range?
The following PHP_IMAP script is echoing an error; how do I hide the error from showing?
how is user name and password is verified in websites?
How to use Acronis?
linux Centos server
Increasing Partition Size