K
Kenneth
Here is what I want to do:
I have a big form that have many controls but at the top I have a text box
for user to enter employee ID. A "search" button. and then a few text box to
display first name, last name, phone number and email etc.
When user enter a number and select "search", I want to pass the number to a
SQL server, and get back the user information, populate the text box for
first name, phone number, email etc.
I know I can make it work using web service, but I want to know if I can
make it work using a data connection. Tried to create a data source to a SQL
database. Two questions here:
1. How to I pass the dynamic employee ID to the data source connection?
2. How do I trigger the data source query when "search" button is clicked?
Thanks in advance.
I have a big form that have many controls but at the top I have a text box
for user to enter employee ID. A "search" button. and then a few text box to
display first name, last name, phone number and email etc.
When user enter a number and select "search", I want to pass the number to a
SQL server, and get back the user information, populate the text box for
first name, phone number, email etc.
I know I can make it work using web service, but I want to know if I can
make it work using a data connection. Tried to create a data source to a SQL
database. Two questions here:
1. How to I pass the dynamic employee ID to the data source connection?
2. How do I trigger the data source query when "search" button is clicked?
Thanks in advance.