No, no, the weekday stuff doesn't pose any problem, except
I set the default value of an entryfield to the current weeknumber.
The same form has a subform displaying all firms that need to be visited
in that week.
Upon opening, this subform is empty,
When I change the weeknumber and finally get back o the current week, all
firms are displayed as they should in this subform.
The subform recordset is based upon following sql:
SELECT [Adressen metaal].*, [Adressen metaal].Naam, [Adressen
metaal].Datum_bezoek, [Adressen metaal].bezoeken
FROM [Adressen metaal]
WHERE ((([Adressen metaal].bezoeken)=True) AND
(([forms].[bezochten].[weeknummer])=DatePart("ww",[Datum_bezoek])))
ORDER BY [Adressen metaal].Naam;
It doesn't seem to be triggered upon opening the form...
Does this all make some sence?
Thanks
JP
Allen said:
I didn't follow that.
If this is in the ControlSource of a text box, drop the brackets and the
Me!. Try:
=[weeknumber]
Or perhaps you could just put this in the Control Source of the text box:
=DatePart("ww",date())