get last record

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Please Help,

I have a form "frmbilling" with field "duedate"
I have a subform "subfrmbilling"

How can I programmatically create a new record in the subform every (1) one
year based on a date entered in the "billdate" field?

Ex.
"Billdate" = 10/15/2006
when 10/15/2007 comes around a new record will be created

Thanks
 
Create a query with a calculated field, say Next_Bill_Date, using the DMax
*and* the DateAdd functions.
Then create an Append query based on the above query with is filtered to
Next_Bill_Date <=Date()

Again, without knowing the structure of you tables it is impossible to give
you exact syntax

Regards/JK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top