J
judith
I have a continuous form displaying a series of data items and have code
attached to the double click event of each field
' sort field
DoCmd.RunCommand acCmdSortAscending
But two of my fields are combo boxes and the bound field is a code rather
than the data displayed. I created a new field
=DLookUp("[unit]","CSCSUnit","[CSCSUnitID]= " & [unitId]) and changed the
double click code for the combo box field to
' sort field
DoCmd.GoToControl "unitSort"
DoCmd.RunCommand acCmdSortAscending
Me.UnitID.SetFocus
but I just get an error that the sort command is not available. Any
suggestions please
attached to the double click event of each field
' sort field
DoCmd.RunCommand acCmdSortAscending
But two of my fields are combo boxes and the bound field is a code rather
than the data displayed. I created a new field
=DLookUp("[unit]","CSCSUnit","[CSCSUnitID]= " & [unitId]) and changed the
double click code for the combo box field to
' sort field
DoCmd.GoToControl "unitSort"
DoCmd.RunCommand acCmdSortAscending
Me.UnitID.SetFocus
but I just get an error that the sort command is not available. Any
suggestions please