Tom Kennedy Posted April 17, 2009 Posted April 17, 2009 I have a field called ClientID in many tables. I want to access that field name using the same code but in different tables. Thus far I have tried different variations of the following without success: Get ( ActiveFieldTableName ) & ": ClientID" Any help will be appreciated.
comment Posted April 17, 2009 Posted April 17, 2009 What exactly does "access that field name" mean? IOW, what are you trying to accomplish?
Tom Kennedy Posted April 17, 2009 Author Posted April 17, 2009 I want to use code like in my example in 'If' statements and to set global variables regardless of which layout I am on.
comment Posted April 17, 2009 Posted April 17, 2009 (edited) I still don't see how this would be useful, but GetField ( Get ( LayoutTableName ) & "::ClientID" ) will get you the value in the ClientID field of the current record in the current table. Note that this will break if you change the field's name (unless you have version 10 and can use the GetFieldName() function). Edited April 17, 2009 by Guest
Recommended Posts
This topic is 5758 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now