I have a form titled "Run Queries" and on this form I have a combo box "Combobox12" that is populated by all the queries in my database. As of right now, its hard to find the query I want becuase its all in random order. How can I sort these queries in a combobox from A to Z. Thank you in advance. I appreciate it. Here is my code:
Option Compare Database
Option Explicit
Private Sub Combo5_AfterUpdate()
End Sub
Private Sub Combo12_BeforeUpdate(Cancel As Integer)
End Sub
Private Sub Command7_Click()
On Error GoTo Err_Command7_Click
Dim stDocName As String
stDocName = "View Fair Vac Results"
DoCmd.OpenQuery Me.Combo12, acViewNormal, acReadOnly
Exit_Command7_Click:
Exit Sub
Err_Command7_Click:
MsgBox Err.Description
Resume Exit_Command7_Click
End Sub
Option Compare Database
Option Explicit
Private Sub Combo5_AfterUpdate()
End Sub
Private Sub Combo12_BeforeUpdate(Cancel As Integer)
End Sub
Private Sub Command7_Click()
On Error GoTo Err_Command7_Click
Dim stDocName As String
stDocName = "View Fair Vac Results"
DoCmd.OpenQuery Me.Combo12, acViewNormal, acReadOnly
Exit_Command7_Click:
Exit Sub
Err_Command7_Click:
MsgBox Err.Description
Resume Exit_Command7_Click
End Sub