L
Lyn
I'm having trouble with creating this type of macro.
Currently, the macro is set up as follows:
Condition: [Sponsor]="XXX"
Action: SetValue
Item: [Forms]![PatientProtocol]![PatientID].[DefaultValue]
Expression: =[Forms]![AllPts]![XXX#]
The macro is set to run On Enter when XXX is entered into
the Sponsor field of the PatientProtocol form. My desire
is that when XXX is entered into the Sponsor field, the
macro will set the PatientID (also in the PatientProtocol
form) to equal the XXX# from the AllPts form (Note:
PatientProtocol is a subform of AllPts). However, when I
enter XXX into the sponsor field, I get an Access error
message that the database can't find the form
PatientProtocol, followed by an ActionFailed message.
Any suggestions?
Currently, the macro is set up as follows:
Condition: [Sponsor]="XXX"
Action: SetValue
Item: [Forms]![PatientProtocol]![PatientID].[DefaultValue]
Expression: =[Forms]![AllPts]![XXX#]
The macro is set to run On Enter when XXX is entered into
the Sponsor field of the PatientProtocol form. My desire
is that when XXX is entered into the Sponsor field, the
macro will set the PatientID (also in the PatientProtocol
form) to equal the XXX# from the AllPts form (Note:
PatientProtocol is a subform of AllPts). However, when I
enter XXX into the sponsor field, I get an Access error
message that the database can't find the form
PatientProtocol, followed by an ActionFailed message.
Any suggestions?