the code you advised above
Code:
Me.txtContainer.DefaultValue = "'" & Forms!frmExport.txtContainer & "'"
As for the Msg box it said previously: Default value is set to:AAAA1234567
With the new code it adds single quote marks around the AAAA1234567
CONTAINER is a text field (what I now understand is a string in Access terms)....
Leave a comment: