Your question (as explained) has MANY possibilities:
If you are connecting to an Access database use the DAO subset of VBA code to link with your data source.
If you are connecting to an ODBC database use the ADO subset of VBA code to link with your data source.
If you are attempting to gather more than one thing (many times) you will need many text bboxes each lonked with a unique data source object.
The actual code is very simple and reads much like
Dim db As Database
Set db =CurrentDb()
however only you know the names of the objects holding the "source" data and the name of your "target" field(s)??
Sorry I can't help more but you didn't provide ANY specifics.