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
MS SQL 2005, split string.
Problems with Sql Server 2008 Enterprise and Windows 7 Professional
negative time
HTML 5: sequence diagram: linked components move together
sql 2005 server showing old AD account name
Updating Multiple rows
How to write a correlated query between tables
parameter values for search
Problem with Declaring a Table Variable within a Table Function
Setting up an ODBC source with a username with Wise Package Studio 8