L
laavista
I need to set a string variable to a lookup field on a form.
I have two tables
"tblCase" with fields:
CaseID autonumber (key)
CaseType, text, 15 char
"tblClient " with fields:
Last_name
First_ name
CaseType, number, long (lookup to table tblCase)
etc.
In the "client" form, case type correctly displays the case type text. I
need to set a string variable to the "case type" text in the form.
The following returns the CaseTypeID which is a number, not the case type
text.
strCaseType = Forms!f_Client![case type]
The following did not work:
strCaseType = "[tblCase].[CaseType] FROM tblCase where (([tblCase.[CaseID])
= forms!f_client![casetype]
Any help would be greatly appreciated!
I have two tables
"tblCase" with fields:
CaseID autonumber (key)
CaseType, text, 15 char
"tblClient " with fields:
Last_name
First_ name
CaseType, number, long (lookup to table tblCase)
etc.
In the "client" form, case type correctly displays the case type text. I
need to set a string variable to the "case type" text in the form.
The following returns the CaseTypeID which is a number, not the case type
text.
strCaseType = Forms!f_Client![case type]
The following did not work:
strCaseType = "[tblCase].[CaseType] FROM tblCase where (([tblCase.[CaseID])
= forms!f_client![casetype]
Any help would be greatly appreciated!