Cherokee17
Programmer
I have a Report that i am working on based upon a certain query. I am trying to gain information from another query by using the DLookup function through VBA coding and assigning the returning information to a label caption. I was able to get the information i wanted ...
Dim x As Variant
x = DLookup("[Harvesting]", "Expenses", "[GrowerID] = 87")
but when i try and take that info and assign it to the label i don't get the caption option...
Me.Label11. ??? = x
All i get in the C's is Column & Controls. Any ideas what i am doing wrong? I have seen a couple threads regarding this topic and other people seem to be able to get the caption option, so i don't have any idea why i can't. Thanks for any help.
Dim x As Variant
x = DLookup("[Harvesting]", "Expenses", "[GrowerID] = 87")
but when i try and take that info and assign it to the label i don't get the caption option...
Me.Label11. ??? = x
All i get in the C's is Column & Controls. Any ideas what i am doing wrong? I have seen a couple threads regarding this topic and other people seem to be able to get the caption option, so i don't have any idea why i can't. Thanks for any help.