I'm very new to VBA and have some questions which may be very basic so bear with me. I would like to link to contents of a text box to a specific database entry. Any help would be appreciated. Thanks.
If you could be more specific that might help... you might also try running one of the form wizards as it is almost always better to start there (create a new form and you should be given the option).
I am guessing you either want to set the text box's control source property equal to the field or you want to use DLookup to find it.
You can access a controls properties by right clicking it and selecting properties. Note there are multiple tabs to show either all or subsets of properties. On the All tab, Control Source should be first in the list. You should be able to drop down the list and select a field. If not you have not set the Recordsource of the form.
I hope this gets you pointed in the right direction.
Sorry for not being more specific. I have a List box that contains names from one column of a table. When an name is selected in the list box, I would like the text box next to this to display the date of birth for that person. DOB is also held in the table. Thanks for your help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.