H
Hilary Ostrov
I have a subform, sfrmCaregiverBillings on which user enters a
CaregiverAssignment, DateOfService and HoursOfService
I would like to be able to alert the user when the combination of
CaregiverAssignmentID and DateOfService already exists (duplicate may
or may not be a valid entry, so cannot set to AllowDuplicates=No.)
Seems to me that I should be able to do this using DLookup, but my
attempts thus far have not been successful.
I have tried various samples that I've found here, but they don't seem
to work for me - either I get no alert (when I would expect to), or I
get an error. I suspect the problem may derive from my date format
(which is dd-mmm-yy) - or maybe it's because this is a subform - but
I'm not sure.
If someone could point me in the direction of the appropriate code, I
would appreciate it.
Thanks,
Hilary
hro
CaregiverAssignment, DateOfService and HoursOfService
I would like to be able to alert the user when the combination of
CaregiverAssignmentID and DateOfService already exists (duplicate may
or may not be a valid entry, so cannot set to AllowDuplicates=No.)
Seems to me that I should be able to do this using DLookup, but my
attempts thus far have not been successful.
I have tried various samples that I've found here, but they don't seem
to work for me - either I get no alert (when I would expect to), or I
get an error. I suspect the problem may derive from my date format
(which is dd-mmm-yy) - or maybe it's because this is a subform - but
I'm not sure.
If someone could point me in the direction of the appropriate code, I
would appreciate it.
Thanks,
Hilary
hro