I have table named “APTS” and a field named ‘Owner_Lname1_Corp’. I have a form where the record source is the ‘APTS’ table. I also have a public variable named ‘owner’
I want to store the value from ‘Owner_Lname1_Corp’ in the public variable ‘owner’.
I know that I can bind a text box (such as ‘text82’) to the field ‘Owner_Lname1_Corp’ and store the value in the ‘owner’ variable with a form:
Owner=Me.text82.value , where ‘text82’ is bound to ‘Owner_Lname1_Corp’.
However, I want to store the current record value for ‘Owner_Lname1_Corp’ directly from the table without going through the ‘Me.text82.value’ method.
I tried the following code in the event method of a command button :
'owner=[APTS].Owner_Lname1_Corp '
But get the error ‘2465’
‘ APT DATABASES can’t find the field ‘|’ referred to in your expression.’
What am I doing wrong?
I want to store the value from ‘Owner_Lname1_Corp’ in the public variable ‘owner’.
I know that I can bind a text box (such as ‘text82’) to the field ‘Owner_Lname1_Corp’ and store the value in the ‘owner’ variable with a form:
Owner=Me.text82.value , where ‘text82’ is bound to ‘Owner_Lname1_Corp’.
However, I want to store the current record value for ‘Owner_Lname1_Corp’ directly from the table without going through the ‘Me.text82.value’ method.
I tried the following code in the event method of a command button :
'owner=[APTS].Owner_Lname1_Corp '
But get the error ‘2465’
‘ APT DATABASES can’t find the field ‘|’ referred to in your expression.’
What am I doing wrong?