I have a record with two columns. One is FieldName, the other is RealName. I know the RealName, is there a syntax I can use to reference the FieldName from RealName?
Eg.
FieldName RealName
Employer Student's Employer
I know the RealName. How do I reference the info under FieldName using the fact that I know the RealName?
Basically I need to make this work
The problem is that Me!cboFieldName1 has to be the FieldName. Me!cboFieldName! is the RealName the user has chosen. So they have chosen "Student's Employer", but I need the code to use "Employer". Hoping there is a simple way to do this..
Thanks,
-Klion
Eg.
FieldName RealName
Employer Student's Employer
I know the RealName. How do I reference the info under FieldName using the fact that I know the RealName?
Basically I need to make this work
Code:
strSQL = "SELECT DISTINCT " & Me!cboFieldName1 & " FROM " & cboTable & ";"
The problem is that Me!cboFieldName1 has to be the FieldName. Me!cboFieldName! is the RealName the user has chosen. So they have chosen "Student's Employer", but I need the code to use "Employer". Hoping there is a simple way to do this..
Thanks,
-Klion