A
alaskahawk
How do I disable sorting?
How do I disable sorting?
I have a datasheet form that brings up a record in another form when the user
double-clicks on a record. Both forms have to be sorted the same way
otherwise Access does not open the correct record. I want to disable the
sort so that users do no mess up the orders. Make sense?
Yes, I understand how relational databases work, thanks. This is 2 FORMS
using the same table data. One in datasheet view, then double-click to get
to columnar view for a single record.
Double-click code:
Private Sub Form_DblClick(Cancel As Integer)
Dim num As Long
num = Me.CurrentRecord
DoCmd.OpenForm "T_Request"
DoCmd.GoToRecord acDataForm, "T_Request", acGoTo, num
End Sub
Thanks for your assistance.
John Vinson said:Yes, I understand how relational databases work, thanks. This is 2 FORMS
using the same table data. One in datasheet view, then double-click to get
to columnar view for a single record.
Double-click code:
Private Sub Form_DblClick(Cancel As Integer)
Dim num As Long
num = Me.CurrentRecord
DoCmd.OpenForm "T_Request"
DoCmd.GoToRecord acDataForm, "T_Request", acGoTo, num
End Sub
Thanks for your assistance.
As opposed to
DoCmd.OpenForm "T_Request", WhereCondition:= "[ID] = " & Me![ID]
which doesn't depend on the order of records in the table?
John W. Vinson[MVP]