I want to know the answer because I can't finish my project the error say "object required"
This is my code
Frec.Open "select * from " & txt1.text & " where " & txt4.text & "=" & "'" & txt.5.text & "'", newcon, adopendynamic, ad lock optimistic
Set txt2.datasource = frec
Txt2.data field = "emp_I'd"
Set txt3.data source = frec
Txt3.data field = "emp_name"
Frec.close