T
Tim B.
Some one please help, I have been stuck on this for two
days now. I am trying to open a form with a
docmd.openform command. The form opens but will not open
to the correct record. The problem seems to be in the
find part of the criteria when calling the date. Here is
the code:
DoCmd.OpenForm "frm_letter_of_indemnity",
acNormal, , "policy_number = '" & strpolicynumber & "' and
start_date = '" & strstartdate & "'"
When the start_date is text field in the table then
everything seems to work fine. But when the start_date is
a date field in the table I get the "OpenForm Action was
Cancelled" error. I need to have the start date as a date
field for other date caculations in the program.
All help appreciated-Tim B
days now. I am trying to open a form with a
docmd.openform command. The form opens but will not open
to the correct record. The problem seems to be in the
find part of the criteria when calling the date. Here is
the code:
DoCmd.OpenForm "frm_letter_of_indemnity",
acNormal, , "policy_number = '" & strpolicynumber & "' and
start_date = '" & strstartdate & "'"
When the start_date is text field in the table then
everything seems to work fine. But when the start_date is
a date field in the table I get the "OpenForm Action was
Cancelled" error. I need to have the start date as a date
field for other date caculations in the program.
All help appreciated-Tim B