
Originally Posted by
kirklandwater123
what happens now is that is just keeps displaying the values of whatever i click. i refreshed, saved, exited and reopened the form, still the same.
and then if i try to tweak it, it won't display the value at all.
well if you've already got it to display the value that you click on, that's all the work. now, just add a DCOUNT() function after the part of the code that captures the value:
Code:
'code that captures the calendar date
if dcount("birthdayfield", "table", "[birthdayfield] = #" & valuefromcalendar & "#") > 0 then
'fill the box! woohoo, it's someone's bday today!
else
'don't do anything
end if