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
DB owner
Exchange System Attendant Error
AS3 xml news ticker - How it's done?
SQL 2005 database move to Windows 7 64 Bit with SQL 2008 R2 Engine installed
auto query windows security log for specific event id
How do I execute a Windows Batch File from SQL?
How can I allow user to modify the interface of the application (Visual Studio)?
Jquery Help, Body on load
USB DRIVE ERROR -- " Please insert a disk into drive O: "
Visual Basic - datagridview returns 2 rows for single database entry