stillwillyboy
Technical User
This code was obtained from the help file. I have modified it to match my db and query. The question is: When this code runs, where does the resulting recordset appear. There is no new table, no change to the original table and no error message. How/where do I see the results of this code?
Is there code missing?
Please help. I am getting frustrated. TIA. Bill
Sub SortX2()
Dim dbsOrderEntry1_BE As Database
Dim rstInvoices As Recordset
Set dbsOrderEntry1_BE = OpenDatabase("Order Entry1_BE.mdb")
' Open a Recordset from an SQL statement that specifies a
' sort order.
Set rstInvoices = _
dbsOrderEntry1_BE.OpenRecordset("SELECT * " & _
"FROM [qry-orders query] ORDER BY orderid ", _
dbOpenDynaset)
dbsOrderEntry1_BE.Close
End Sub
Is there code missing?
Please help. I am getting frustrated. TIA. Bill
Sub SortX2()
Dim dbsOrderEntry1_BE As Database
Dim rstInvoices As Recordset
Set dbsOrderEntry1_BE = OpenDatabase("Order Entry1_BE.mdb")
' Open a Recordset from an SQL statement that specifies a
' sort order.
Set rstInvoices = _
dbsOrderEntry1_BE.OpenRecordset("SELECT * " & _
"FROM [qry-orders query] ORDER BY orderid ", _
dbOpenDynaset)
dbsOrderEntry1_BE.Close
End Sub