Hi all, this shouldn't be too difficult, I just don't know the syntax.
I tried to do this in the code for a form.
deptCount = DoCmd.OpenQuery("countDepts")
and it won't compile. How am I supposed to do this?
I need to capture this number in a variable because I'll be using it in loops and Range Selection
Thanks so much.
PB
I tried to do this in the code for a form.
deptCount = DoCmd.OpenQuery("countDepts")
and it won't compile. How am I supposed to do this?
I need to capture this number in a variable because I'll be using it in loops and Range Selection
Thanks so much.
PB