can any one help me in solving my assignment

For your understanding, My assignment is like this:

One Active Document Named "Connect" will resemble below

Database Name (Label) dname(TextBox)
Table Name(Label) tname(TextBox)

Connect(CommandButton)

we choose dname and tname, we connect is clicked
a database by named "Screen.mdb" should be accessed and a table by name "scr" should be accessed and fields by named "cname"(Control Name) and "ctype"(Control Type) should be accessed.

Based on the above table, The Fields(based on the control type) should be displayed on the Activex Control hiding the dname,tname, connect controls.

For Example :
if the scr has the following contents

cname ctype
name TextBox
age TextBox
Sex CheckBox

then two textboxes and one checkbox should be created on the activex document (hiding all other previous controls)

In addition to the above controls one CommandButton by named "Save" should be created.

In the Click event of the Save command button, all the data in the two textboxes and checkbox should be stored on to "out.mdb" in "data" table.