DLookup Urgent
Hi all,
I'm using DLookup to get a amount.
Which table to be use, is decide by another function.
So table name is pass into a string.
Dim TableName as string
TableName = anotherfunction
Me.txt_Amt.Value = DLookup("[Entr&Sub_1yr]", "& TableName &", "[MembershipCategory] = '" & Forms![subfrm_IndiApplicationApproval]![cbo_CategoryGrant] & "'")
My error is highlight in red. Please teach me how to use.
Thanks
|