T
Terry
Hello
I have the following Dlookup that I am using:
Sub Getdata()
varval = "=DLookUp(""[In_Instructions]"",""Instructions"",""[In_C_Type]='" &
"avg"" & ' & " And "& ""[In_P_Type]='" & "cname"")'"
Me.Instruction.Text = varval
End Sub
avg is a publically declared variable that equates to a text value
cname is a publically declared variable that equates to a text value
In_C_Type is a text field in the Instructions table
In_P_Type is a text field in the Instructions table
Me.Instruction.text is a memo field from my Instructions table. I have it
displayed on the form. I was going to use the "Controlsource" but kept
getting a syntax error when trying to use it.
I get a type mismatch when I try to run this. The type mismatch comes "in"
the dlookup function itself.
Any suggestions?
Thank you so much
Terry V
I have the following Dlookup that I am using:
Sub Getdata()
varval = "=DLookUp(""[In_Instructions]"",""Instructions"",""[In_C_Type]='" &
"avg"" & ' & " And "& ""[In_P_Type]='" & "cname"")'"
Me.Instruction.Text = varval
End Sub
avg is a publically declared variable that equates to a text value
cname is a publically declared variable that equates to a text value
In_C_Type is a text field in the Instructions table
In_P_Type is a text field in the Instructions table
Me.Instruction.text is a memo field from my Instructions table. I have it
displayed on the form. I was going to use the "Controlsource" but kept
getting a syntax error when trying to use it.
I get a type mismatch when I try to run this. The type mismatch comes "in"
the dlookup function itself.
Any suggestions?
Thank you so much
Terry V