How to pupulate a dialog box field with field names from a form?

Hi,I need to populate a dialog box field with the names of fields from a specific form (one in the current DB, one in a separate DB). Any thoughts or suggestions on how to do this? I currently am typing the names of all the fields and hoping to automate this.

Thanks

Subject: fields

NotesForm.fields should give you what you need.

You’ll probably need to use some code (maybe in post open, or in an agent) to fill in a field on the current form with the relevant details and use that field as the dialog box list formula