A
Alan Z. Scharf
1. A combo box stays blank after setting its value to a DLookup. (Code at
end of message.)
2. NOTE: The lookup works and returns the proper value, AND even the value
of the combo box Me!cboFundNames shows the proper value in code upon
stopping running code at that point!
3. However, the combo box on the form remains blank!
4. The same combo box on the form works with other DLookups used in the
app. Either they should all work or all fail.
5. I can't figure this one out. Any suggestions would be greatly
appreciated.
Thanks.
Alan
Combo Box Code:
-------------------------
Me!cboFundNames = DLookup("[ParCode]", "qryFundNamesMissing",
"[Holding] = '" & DMin("[FundName]", "qryDocumentsMissing",
"[RequiredHoldCode] = '" & Me!cboHoldingNames & "'") & "'")
Me!cboFundNames.RowSource = ("SELECT Holding, HoldCode FROM
qryFundNamesMissing")
___________________________
Alan Z. Scharf
GrapeVine Systems
New York City
end of message.)
2. NOTE: The lookup works and returns the proper value, AND even the value
of the combo box Me!cboFundNames shows the proper value in code upon
stopping running code at that point!
3. However, the combo box on the form remains blank!
4. The same combo box on the form works with other DLookups used in the
app. Either they should all work or all fail.
5. I can't figure this one out. Any suggestions would be greatly
appreciated.
Thanks.
Alan
Combo Box Code:
-------------------------
Me!cboFundNames = DLookup("[ParCode]", "qryFundNamesMissing",
"[Holding] = '" & DMin("[FundName]", "qryDocumentsMissing",
"[RequiredHoldCode] = '" & Me!cboHoldingNames & "'") & "'")
Me!cboFundNames.RowSource = ("SELECT Holding, HoldCode FROM
qryFundNamesMissing")
___________________________
Alan Z. Scharf
GrapeVine Systems
New York City