How do I do the dlookup?
Okay, I designed this DLookup.
Code:
Dim varX As Variant
varX = DLookup("[mem_type]", "members", _
"[member_ID] = " & Forms!members!member_id)
MsgBox "Dlookup Value is " & mem_type.Value
The [mem_type] is the value I want to obtain from another table.
The "members" is the table I want to pull the data from
The [member_ID] is the value that the two need to be equal to give me the value of mem_type.
Test is that it works. It does show me the correct record for the member and their choice of member ID. I attached it to
Private Sub mem_type_Change()
So, everytime a member changes their membership type I get an updated value.
Thank you for pointing me in the right direction.
I hope it works across forms though. I'm going to test THAT now. My main Member's form uses Tabs to group the information in one form.