Am I trapped?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I use a popup form for two operations. I need to show different items in
EndowLstBx, depending on which operation I'm running. In a single-purpose
form, I would put code in the listbox RowSource. But when I do that here, it
is apparently too late to have an effect. What is the best strategy for
working around this? Thank you for any help!

Public Sub BreakDelPop(strAction As String)
If strAction = "Delete" Then
DoCmd.OpenForm "SWBBreakDelPopup"
With Forms!SWBBreakDelPopup
!EndowLstBx.RowSource = "SELECT ..."
End With
End If
End If
End Sub
 
Why don't you just populate the listbox dynamically via ADO or DAO table
queries in VB?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top