When I try to run the lookup in the immediate compiler using the
following code, the function only returns the first value in the
products table, otherwise I get a data type mismatch.
print DLookup("[UnitPrice]", "Products", ProductID=6)
my lookup code is as follows:
Private Sub ProductID_AfterUpdate()
strFilter = "ProductID = " & Me!ProductID
Me!UnitPrice = DLookup("[UnitPrice]", "Products", "strFilter")
End Sub
any help with this problem would be greatly appreciated
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ms_access/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/