I want to make index view of phone direcotory i.e. on a single form there are buttons from a to z.
I hav make separete queries that shows results start from A, B respectivly.
But how i can handel these queries on single form i.e. when i click A it run qery A and display corresponding records.when B.....so on
Thx
One option is to create queries.
for query A, set your criteria for qurery A.
same for the rest of the queries
display each query in a form (A,B,C,....)
Then in the form, create buttons (A, B, C, D,etc.....)
Private Sub A_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "formA"
DoCmd.Openform stDocName, , , stLinkCriteria
End Sub
Or you can do it dynamically,
Cheers