Robert Burns
Registered User.
- Local time
- Today, 09:51
- Joined
- Jul 1, 2002
- Messages
- 14
Hi there,
I am trying to pass some arguments from a form's code module in a call to a public procedure stored in a standard code module. The arguments I am passing are:
'strFormName" the name of the form, which = "frmFilter"
'strList' the name of a list box, which = "lstFiltered"
Why, when I try to reference the list box in the public procedure by:
If Forms!strFormName!strList.ItemsSelected.Count = 0 Then
do I receive the message that 'strFormName cannot be found'?
If I replace the variables in the public procedure with the full reference notation, then it works fine, so I assume that something is wrong with my passing in the arguments. I have tried many variations with no success,
Any help much appreciated,
Rob
I am trying to pass some arguments from a form's code module in a call to a public procedure stored in a standard code module. The arguments I am passing are:
'strFormName" the name of the form, which = "frmFilter"
'strList' the name of a list box, which = "lstFiltered"
Why, when I try to reference the list box in the public procedure by:
If Forms!strFormName!strList.ItemsSelected.Count = 0 Then
do I receive the message that 'strFormName cannot be found'?
If I replace the variables in the public procedure with the full reference notation, then it works fine, so I assume that something is wrong with my passing in the arguments. I have tried many variations with no success,
Any help much appreciated,
Rob