G
gaugust
I would like to sort the underlying table so that when viewed it is in sorted
order. My code (below) is currently sorting a table and creating a new sorted
table. I really do not want to have 2 tables however. I tried using SELECT
.... FROM Case1 ORDER BY random asc, but it does not work. This should be easy
to do but have not found the code to do this. Is there an easy way to do
this? Thanks.
Dim lstrSQL As String
Dim qryDef As QueryDef
lstrSQL = "SELECT Control, LName_Con, FName_Con, MRN_Con, ICUdt_Con,
DCdt_Con, EXPTime_Con, Random, Indexdt_Con "
lstrSQL = lstrSQL & "INTO Case1Sorted FROM Case1 Order by Random asc"
DoCmd.RunSQL lstrSQL
order. My code (below) is currently sorting a table and creating a new sorted
table. I really do not want to have 2 tables however. I tried using SELECT
.... FROM Case1 ORDER BY random asc, but it does not work. This should be easy
to do but have not found the code to do this. Is there an easy way to do
this? Thanks.
Dim lstrSQL As String
Dim qryDef As QueryDef
lstrSQL = "SELECT Control, LName_Con, FName_Con, MRN_Con, ICUdt_Con,
DCdt_Con, EXPTime_Con, Random, Indexdt_Con "
lstrSQL = lstrSQL & "INTO Case1Sorted FROM Case1 Order by Random asc"
DoCmd.RunSQL lstrSQL