Referencing UserProperty by Name

  • Thread starter Thread starter David C. Holley
  • Start date Start date
D

David C. Holley

I'm trying to reference a user property field named 'dbAccessId'. What
am I missing? The code runs in the Item_Close event behind a custom form.

item.userProperties("dbAccessId")
 
I checked the name for the textBox displaying the value and changed it
to dbAccessId (from the default). Would item.dbAccessId be the proper
way to ref the field from the form?
 
No, as I said earlier, you already had the correct syntax for referencing a custom property: item.userProperties("dbAccessId")

But if dbAccessId is the name of the control, that's not a property at all. The property name is what's shown at the top of the Value tab of the control's Properties dialog.

Also, you didn't say what happens when your code runs.

Also note: The newsgroup interface you are using apparently does not quote earlier messages in the thread, making your latest message so short on detail that you risk not getting the answer you're looking for. Please take the time to quote the original message.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Actually, I discovered that the problem was that the userProperty is
dbAccessID and I was using dbAccessId - note the lower case 'd' in the later
 
Back
Top