I have a button that opens up a form. The code behind the button is:
How would I set this up so that the form, when opened, is sorted by two criteria: (Ascending) 'SequenceNumber', and then by 'Name'? I assume this would go in the stLinkCriteria, but I don't know how to code it.
Thanks in advance,
Onwards,
Q-
Code:
Private Sub Command10_Click()
On Error GoTo Err_Command10_Click
Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = "TagTypeID = 6"
stDocName = "frmTags"
DoCmd.OpenForm stDocName, acNormal, , stLinkCriteria
Exit_Command10_Click:
Exit Sub
Err_Command10_Click:
MsgBox Err.Description
Resume Exit_Command10_Click
End Sub
How would I set this up so that the form, when opened, is sorted by two criteria: (Ascending) 'SequenceNumber', and then by 'Name'? I assume this would go in the stLinkCriteria, but I don't know how to code it.
Thanks in advance,
Onwards,
Q-