在以下代码示例中,[MainSwitchBoardPhone] 的属性类型为“Phone”。当我将计算出的 ClinicHospitalAddress 属性设为实体的摘要属性时,我希望电话号码以 (555) 555-5555 格式显示在数据输入屏幕中,而不仅仅是字符串。即5555555555。有没有办法做到这一点?
Private Sub ClinicHospitalAddress_Compute(ByRef result As String)
' Set result to the desired field value
result = [ClinicHospital] & " " & [StreetAddress] & ", " & _
[City] & " " & [MainSwitchBoardPhone]