D
Dom.
Hello everyone,
I have a form and I need the controls to be filled
with dcount values. I have tried the following code but
that did not seem to work correctly.
'''begin code
Dim i as Integer
For i = 1 to 7
Me("txtQtrOne_Q" & i)= Dcount("SysID" & i,"myTable", _
"(Q)& i = 1)
Next i
'''end code
myTable contains Questions 1 - 7 and I want all those
question to be counted if the value is 1, otherwise ignore
it. The part that is not working properly is the Dcount
portion of it. I'm not that experience in VBA but i'm
learning, any sugestions.
I have a form and I need the controls to be filled
with dcount values. I have tried the following code but
that did not seem to work correctly.
'''begin code
Dim i as Integer
For i = 1 to 7
Me("txtQtrOne_Q" & i)= Dcount("SysID" & i,"myTable", _
"(Q)& i = 1)
Next i
'''end code
myTable contains Questions 1 - 7 and I want all those
question to be counted if the value is 1, otherwise ignore
it. The part that is not working properly is the Dcount
portion of it. I'm not that experience in VBA but i'm
learning, any sugestions.