Add records in the right order

fgaiga

Registered User.
Local time
Today, 01:48
Joined
Aug 25, 2005
Messages
21
Hi,

I am a bit stuck now and I want to get some ideas from you.

The context first : I am writing a timesheet application and I've got a main form + a sub-form.
In the mainform, I select the engineer, the contract and the week nbr.
My mainform calculates the first and the last day of the selected week and modifies the recordsource property of my sub-form to select the existing records with the right engineer + contract nbr + range of first and last of week. This means that I can only have maximum 7 records for the seven days of the week because the application records only a global time per engineer/contract/per day.

Now I want to know how can I add new records in the subform for the missing days and how to put them in the right order ?

Example: I retrieve from my select in the subform, the times from day 2 and day 4 but I need to generate the missing days 1, 3, 5,6 & 7.

How can i display them in the right order: day 1 (auto), day 2 (table), day 3 (auto), day 4 (table), and so on...

In which event do I have to put code and what kind of code ??


Please help !
 
Times

I did this timesheet gig about a year ago. See the attached Word Document to get you started. Then in the query that your subform uses set it to sort in Ascending order.

If you need more info let me know.
 

Attachments

Last edited:
Thanks; I'll try this approach.
 

Users who are viewing this thread

Back
Top Bottom