G
Guest
I have the following lines as part of an Event Procedure:
Forms![Physician].AllowDeletions = False
stDocName = "Physician"
stLinkCriteria = "[Physician_ID]=" & "'" &
Forms![SEL-Physician]![SelPhys] & "'"
DoCmd.OpenForm stDocName, acNormal, , stLinkCriteria
The first line of this sample causes and error saying that the form
Physician cannot be found.
Based on Access Help, the structure of the line is appears correct. I have
tried other lines as in: Forms("Physician").AllowDeletions = False with
the same results. I have triple-checked the spelling and cannot see the
problem.
Can someone tell me what I am doing wrong? Thanks.
Forms![Physician].AllowDeletions = False
stDocName = "Physician"
stLinkCriteria = "[Physician_ID]=" & "'" &
Forms![SEL-Physician]![SelPhys] & "'"
DoCmd.OpenForm stDocName, acNormal, , stLinkCriteria
The first line of this sample causes and error saying that the form
Physician cannot be found.
Based on Access Help, the structure of the line is appears correct. I have
tried other lines as in: Forms("Physician").AllowDeletions = False with
the same results. I have triple-checked the spelling and cannot see the
problem.
Can someone tell me what I am doing wrong? Thanks.