Joined
·
11,117 Posts
Ok I hope I can explain this properly (I am using visual basic in Microsoft access)
In my database I have to create a bookings ticket report, and in that report there have to be certain information. on the ticket I have to put a 'C' which has to appear on every ticket that is a childs ticket. Now the problem is that I have used this code:
Now the problem is that the 'C' does appear on the ticket but also the 'A' (for adult) also appears as well, which I don't want.
so does anyone know how I can overcome this problem?
EDIT: I tried it another way where each seat ID for Child are A04 and A18. but now all of the tickets appear with 'C'
In my database I have to create a bookings ticket report, and in that report there have to be certain information. on the ticket I have to put a 'C' which has to appear on every ticket that is a childs ticket. Now the problem is that I have used this code:
Code:
Private Sub Report_Activate()
If [Child/Adult] = "C" Then
[childsign].Visible = True
[Child/Adult].Visible = False
Else
[childsign].Visible = false
End If
End Sub
so does anyone know how I can overcome this problem?
EDIT: I tried it another way where each seat ID for Child are A04 and A18. but now all of the tickets appear with 'C'
Code:
Private Sub Report_Activate()
If [Seat ID] = "C" Then
[childsign].Visible = True
End If
End Sub