SachAccess
Active member
- Local time
- Today, 14:45
- Joined
- Nov 22, 2021
- Messages
- 405
Hi,
I have a Form in my DB.
I have provided a Button in my DB.
Button is linked to below code.
Once clicked it takes user to query result.
At present when user clicks on button ‘Code and Name ‘ from ‘Emp Code and Name’ form.
Both query ‘Q_Select_Only_Two_Column’ and form ‘Emp Code and Name’ are visible, which is fine.
However when user returns to form even then also both are visible.
My question is, once user is back to Form how do I auto-close the query result.
Thanks.
I have a Form in my DB.
I have provided a Button in my DB.
Button is linked to below code.
Once clicked it takes user to query result.
At present when user clicks on button ‘Code and Name ‘ from ‘Emp Code and Name’ form.
Both query ‘Q_Select_Only_Two_Column’ and form ‘Emp Code and Name’ are visible, which is fine.
However when user returns to form even then also both are visible.
My question is, once user is back to Form how do I auto-close the query result.
Thanks.
Code:
Option Compare Database
'Form Get Employee Details
Private Sub Command5_Click()
DoCmd.OpenQuery "Q_Select_Only_Two_Column"
End Sub