B
blueboy1894
Hi
I have a set of week/period codes in atable that I want to reference on a
form so that when a date is entered, the corresponding Period is displayed,
based on the start and end dates of the period in the period table.
The Syntax:
Me!myWeek = DLookup("[strPeriod]", "[tblPeriods]", "Me![myDate] between
[dtStart] And [dtFinish]")
doesn't return the correct value.
I have a feeling I'm way off the mark with this one and would appreciate any
pointers! In the meantime I think I'll have a play doing this via a SQL
statement instead.
Ta
I have a set of week/period codes in atable that I want to reference on a
form so that when a date is entered, the corresponding Period is displayed,
based on the start and end dates of the period in the period table.
The Syntax:
Me!myWeek = DLookup("[strPeriod]", "[tblPeriods]", "Me![myDate] between
[dtStart] And [dtFinish]")
doesn't return the correct value.
I have a feeling I'm way off the mark with this one and would appreciate any
pointers! In the meantime I think I'll have a play doing this via a SQL
statement instead.
Ta