G
Guest
I would like to automatically set the default value of a field in a table
(InvoiceDate) each month when we create invoices to be the 20th of the
current month. I do it manually now by going into design view of the table
and manually typing in the new date. Is there a way to do this using code or
a macro from the form I already have open? I'd like to click a button on the
form and it automatically change the default date for [InvoiceDate] in the
Invoice table to the 20th of the current month.
I've played around with:
docmd.RunCommand acCmdSetControlDefaults
in the module for the form, but can't figure out how to make it work (if it
is even possible).
Thanks for any advice!
Susan
(InvoiceDate) each month when we create invoices to be the 20th of the
current month. I do it manually now by going into design view of the table
and manually typing in the new date. Is there a way to do this using code or
a macro from the form I already have open? I'd like to click a button on the
form and it automatically change the default date for [InvoiceDate] in the
Invoice table to the 20th of the current month.
I've played around with:
docmd.RunCommand acCmdSetControlDefaults
in the module for the form, but can't figure out how to make it work (if it
is even possible).
Thanks for any advice!
Susan