S
Scafidel
I have an Access Form that uses the following code to open a Word document
which works fine:
Const conTEMPLATE_NAME = "C:\FORMS\Form_A.dotm"
Now, I would like a choice of two documents, so I've added a check box (EXB)
to the form and tried the following code, but get the error, (Else Without
If):
If (Forms!DocMaker!EXB) = True Then Const conTEMPLATE_NAME =
"C:\FORMS\Form_B.dotm"
Else
Const conTEMPLATE_NAME = "C:\FORMS\Form_A.dotm"
End If
End Sub
I've tried putting this in brackets and that in parenthesis, but without
luck. Any suggestions?
Thanks.
which works fine:
Const conTEMPLATE_NAME = "C:\FORMS\Form_A.dotm"
Now, I would like a choice of two documents, so I've added a check box (EXB)
to the form and tried the following code, but get the error, (Else Without
If):
If (Forms!DocMaker!EXB) = True Then Const conTEMPLATE_NAME =
"C:\FORMS\Form_B.dotm"
Else
Const conTEMPLATE_NAME = "C:\FORMS\Form_A.dotm"
End If
End Sub
I've tried putting this in brackets and that in parenthesis, but without
luck. Any suggestions?
Thanks.