YUPAPA
Registered User.
- Local time
- Today, 08:02
- Joined
- Sep 28, 2002
- Messages
- 11
HiHi 
I have a problem when displaying search result on my sub form.
On the main form, I have a button and the code for that is:
I have a sub form which is a datasheet contains all my data of the table client_TBL.
What I want to do is to display all the records which has client_id 1 onto the subform when I click on the button.
Also, I get error 3065 when I click on the button.
Please help me out!!
Thank you!
I have a problem when displaying search result on my sub form.
On the main form, I have a button and the code for that is:
Code:
Private Sub client_manager_search_Click()
Dim SQL As String
Set db = CurrentDb()
SQL = "SELECT * FROM client_TBL WHERE client_id = 1"
db.Execute SQL
End Sub
I have a sub form which is a datasheet contains all my data of the table client_TBL.
What I want to do is to display all the records which has client_id 1 onto the subform when I click on the button.
Also, I get error 3065 when I click on the button.
Please help me out!!