'CODE BEHIND THE BUTTON
Private Sub cmdRun_Click()
Dim strFilter As String
Dim varItem As Variant
' loop through listbox items selected
For Each varItem In Me!lstServers.ItemsSelected
strFilter = strFilter & "[Server_Name] = '" & _
Me![lstServers].ItemData(varItem) &...
I have a list box that lists a bunch of server names. When i highlight one and click a command button called "Run Report" it always asks for the primary key and when i enter any number it then goes to the report... how do i correct this? Let me know if you need more info,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.