# Merging Database Data and Text

> Fill the Marked Text Fields of a template with a database record in Visual Basic 6: find fields by FieldData name with FieldNext, set FieldText with DAO.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > Mail Merge > Merging Database Data and Text
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/mail-merge/merging-data/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/mail-merge/merging-data/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/mail-merge/merging-data/llms-full.txt

---

## On This Page

- [Run the Sample](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/merging-data/#run-the-sample)
- [How the Template Identifies Its Fields](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/merging-data/#how-the-template-identifies-its-fields)
- [Find a Field by Its Name](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/merging-data/#find-a-field-by-its-name)
- [Merge a Record Into the Fields](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/merging-data/#merge-a-record-into-the-fields)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/merging-data/#next-steps)

---

## Nearby

- **Previous:** [Mail Merge](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/llms.txt)
- **Next:** [Printing More Than One Record](https://docs.textcontrol.com/tx-text-control-activex/mail-merge/multiple-records/llms.txt)
