Hello all, I have an expression in a macro that works fine. But I was just wordering if is is possbile to convert it to VB. I am just trying to learn more about VB. I've check the Docmd help syntax and got the general ideal but could not get to it work as I wish.
My macro expression is: [CA/PA Champion]=[Forms]![Nonconformance]![CA/PA Champion]. This works great. It give me a parameter box which allows me to type whatever is in the control.
My VB code I tried to test is, DoCmd.OpenReport "champions", , ,"[ca/pa champion] = 'b.burden"and it works, if the only thing in this control was a single name, but it's not. Actualy this control is a combo box with several names and I want to be able to select from the list of names and open the report with the condition where they can select only their records.
Thanks guys for any help, suggestion or comments.
BLB
- Always Grateful
A good friend will bail you out of jail. A true friend will be sitting at your side saying, "Boy - didn't we have fun?"
My macro expression is: [CA/PA Champion]=[Forms]![Nonconformance]![CA/PA Champion]. This works great. It give me a parameter box which allows me to type whatever is in the control.
My VB code I tried to test is, DoCmd.OpenReport "champions", , ,"[ca/pa champion] = 'b.burden"and it works, if the only thing in this control was a single name, but it's not. Actualy this control is a combo box with several names and I want to be able to select from the list of names and open the report with the condition where they can select only their records.
Thanks guys for any help, suggestion or comments.
BLB
![[elephant2] [elephant2] [elephant2]](/data/assets/smilies/elephant2.gif)
A good friend will bail you out of jail. A true friend will be sitting at your side saying, "Boy - didn't we have fun?"