in visual basic 6
i have on table contain many rows.
I used "LIKE" operator to search by employee name :
Adodc1.RecordSource = "SELECT ...... where T_Deductions_Collection.Employee_Name LIKE '%" & Text5 & "%' and ..... "
I want to change the search technique to be by employee_ID instead of employee_name, knowing that the employee ID number consists only of numbers.
What is the appropriate code
aboezzat84 16 Newbie Poster
rproffitt commented: I found VB6 and the usual SQL to flat out be unsupportable years ago. Move on! +16
Recommended Answers
Jump to Post— SCBWV 441Adodc1.RecordSource = "SELECT ... FROM T_Deductions_Collection WHERE Employee_ID = " & Val(Text5.Text) & " AND ..."
Why are you using RecordSource instead of Adodc1.Open?
All 3 Replies
SCBWV 441 Junior Poster
Reverend Jim 6,665 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
SCBWV 441 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.