A dialog variable holds values for fields in the dialog. Dialog variables are declared using Dim dlgvar As user dialog.