Filling in a forms text boxes using ADO??, HELP!!

J

Jason

Hello I have a question for all the experts here.

I've got a table for example Employees with fields like Employee First Name
| Employee Last Name | Address

I have built a form, frmEmployees and have text boxes to correspond to the
fields such as Last Name, First Name. How would I fill those for the
current employee on the form using a module ADO ?

Also on the form I want to put Spouse First Name and would like that to be
filled in as well, this will come from another database called
EmployeeSpouse and I would like to fill in the SpouseFirstName field in
the spouse info table - so that that is also put into this frmEmployees.

now I have opened up that EmployeeSpouse database like this.
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:\temp\employeespouse.mdb;"

can someone be of some help and show me how to fill in these text boxes with
data from the table?
thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top