S
Stu
Using Access 2003 and an unbounded form/fields. The form collects parameters
for reports and has a Clear button. I want the Clear button to put in
default values into text/list fields as when the form is opened. I've tried
looping through the fields and using the statement "CTL=CTL.DEFAULTVALUE"
(and variations thereof) but the date field default values display with #
before and after the date and text/list boxes display quotes around the
default values. I tried closing the form and re-opening and that works fine,
but isn't what I want to do. Can someone provide a code snippet to put in
default values into fields without quotes and pound signs for dates?
for reports and has a Clear button. I want the Clear button to put in
default values into text/list fields as when the form is opened. I've tried
looping through the fields and using the statement "CTL=CTL.DEFAULTVALUE"
(and variations thereof) but the date field default values display with #
before and after the date and text/list boxes display quotes around the
default values. I tried closing the form and re-opening and that works fine,
but isn't what I want to do. Can someone provide a code snippet to put in
default values into fields without quotes and pound signs for dates?