G
Guest
Hi,
when i start a programm every option, which is before (12) makes two things:
open a report (which is ok) and open a msgbox from section (12) (what should
happen olny when i choose option (12)). When i choose option (12) it opens
itself and option (13). What is wrong in the code? Thanks.
..................
If lstZakupy.Selected(11) Then DoCmd.OpenReport ("gry_Lief_AGrp"),
acViewPreview
If lstZakupy.Selected(12) Then DoCmd.RunMacro ("Auslauf_Update_1")
If DCount("[ArNr]", "Auslauf_Temp") = 0 Then
If MsgBox("Text", vbYesNo) = vbYes Then
DoCmd.OpenForm ("AuslaufArt_1")
End If
Else
DoCmd.OpenForm ("AuslaufArt_2")
End If
If lstZakupy.Selected(13) Then DoCmd.RunMacro ("Gesperrt_Update_1")
when i start a programm every option, which is before (12) makes two things:
open a report (which is ok) and open a msgbox from section (12) (what should
happen olny when i choose option (12)). When i choose option (12) it opens
itself and option (13). What is wrong in the code? Thanks.
..................
If lstZakupy.Selected(11) Then DoCmd.OpenReport ("gry_Lief_AGrp"),
acViewPreview
If lstZakupy.Selected(12) Then DoCmd.RunMacro ("Auslauf_Update_1")
If DCount("[ArNr]", "Auslauf_Temp") = 0 Then
If MsgBox("Text", vbYesNo) = vbYes Then
DoCmd.OpenForm ("AuslaufArt_1")
End If
Else
DoCmd.OpenForm ("AuslaufArt_2")
End If
If lstZakupy.Selected(13) Then DoCmd.RunMacro ("Gesperrt_Update_1")