Warrio said:
Thanks again for your quick answer
one more question, please!
How can I attach the textbox to the recordsource (created by coding)?
my record source looks like :
rs.Open "Select Name from Table", con, 1
but how can I bound the field Name of the this recordsource to the
textbox? (the only data propriety for the textbox is ControlSource)
so? Should I use this propriety ?
Hmm. You've been saying "recordsource", but it may mean that you mean
"recordset". There's a big difference between the two. Still, in
either case you bind a control by setting its ControlSource property to
the name of a field that is in the recordsource. So if you have a text
box named "Text1" and you want to bind it at run time to a field named
"Name" (not a great name for a field!), you'd execute the statement
Me!Text1.ControlSource = "Name"