Select case or if elseif problem
I have the following problem.On my main form i have an Option box giving the results of the sales of different branches.
this is carried out by the function FncBranchSales. On my main form i have also a toggle button called cmdLondon,
carrying out the function FncBranchsalesLondon.
I cannot construct the ElseIf or Select Case codes in the right way. This is because in the function FncBranchSales there is a condition to
perform an action in case i have not selected an option. Therefore ,if i do not choose an option in the option group, i obtain a conflict
between my 2 functions.
I think the confclit between my function is due to my wrong Elseif or Select case codes.
I want to perform a secure operation with the Option Box, in case the toggle button CmdLondon is not selected.Obviuosly my toggle
button is the reason for my troubles, but i need it.
Can somebody advise me what is the best way to construct an ElseIf code?
Below are some of attempts to construct the If sentence, but with no success:
f Forms![Main]![Office] = True Then ‘ perform some action only in case the toggle button is not selected
If Forms![Main]![CmdLondon] = False Then
FncBranchSales (Me.Name)
Else
FncBranchSalesLondon
End If
End If