auto fill with date range

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

Guest

im making a timesheet. i would like to enter a range of of date (from-to
date) and a subform will appear with cells already filled up with the said
dates
 
How do you want to enter the dates?
============================================
is it using two fields in the main form that the user enter date into, then
write the sql for the sub form as:
Select * From MyTable Where MyDateField Between
forms![FormName]![FieldFromDate] And forms![FormName]![FieldToDate]

On the after update of the fields you should run me.SubformName.requery
============================================
is it using two parameters in the query that you use as the record source in
the sub form;
Select * From MyTable Where MyDateField Between [Enter Date From here:] And
[Enter Date to here:]
 

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