G
Guest
I have a database, which you can make ONE label and then you can print the
label in 19 languages BUT if the field "Productname" is empty, it should
stop... but I can't seen to get it working right..
F.x.: Productname in UK are "Product 1" and Productname in Austria is empty
(no sale)
---
Private Sub Button_Print_Austria_Click()
On Error GoTo Err_Button_Print_Austria_Click
Dim stDocName As String
Dim MyCheck, Response, Msg, Style, Title
Msg = "This product is not available in Austria! Do you wish to
continue?"
Style = vbYesNo + vbCritical
Title = "Warning!"
MyCheck = IsEmpty(Productname)
MsgBox (Productname)
If MyCheck = True Then
Response = MsgBox(Msg, Style, Title)
If Response = 6 Then (Have tried vbYes but it didn't work)
stDocName = "Master_A"
DoCmd.OpenReport stDocName, acNormal, , "[M-ID]=" & [M-ID]
MyCheck = False
End If
End If
If MyCheck = False Then
stDocName = "Master_A"
DoCmd.OpenReport stDocName, acNormal, , "[M-ID]=" & [M-ID]
End If
---
label in 19 languages BUT if the field "Productname" is empty, it should
stop... but I can't seen to get it working right..
F.x.: Productname in UK are "Product 1" and Productname in Austria is empty
(no sale)
---
Private Sub Button_Print_Austria_Click()
On Error GoTo Err_Button_Print_Austria_Click
Dim stDocName As String
Dim MyCheck, Response, Msg, Style, Title
Msg = "This product is not available in Austria! Do you wish to
continue?"
Style = vbYesNo + vbCritical
Title = "Warning!"
MyCheck = IsEmpty(Productname)
MsgBox (Productname)
If MyCheck = True Then
Response = MsgBox(Msg, Style, Title)
If Response = 6 Then (Have tried vbYes but it didn't work)
stDocName = "Master_A"
DoCmd.OpenReport stDocName, acNormal, , "[M-ID]=" & [M-ID]
MyCheck = False
End If
End If
If MyCheck = False Then
stDocName = "Master_A"
DoCmd.OpenReport stDocName, acNormal, , "[M-ID]=" & [M-ID]
End If
---