Gruung
Registered User.
- Local time
- Today, 21:28
- Joined
- Nov 25, 2003
- Messages
- 35
On my open form I have this code, the from is based on a query which asks you what class you want 12 or 13. If it is 12 i want the default value for class to be 12 and i want the image to be Year12.gif. The default value bit works, i have tried it without the image bit of the code, however how do I get the image bit working?
Private Sub Form_Open(Cancel As Integer)
If Forms!StudentsEditMode!Class = 12 Then
Me.Class.DefaultValue = 12 And Me.Image38 = /pictures/Year12.gif
Else: Me.Class.DefaultValue = 13 And Me.Image38 = /pictures/Year13.gif
End If
End Sub
Private Sub Form_Open(Cancel As Integer)
If Forms!StudentsEditMode!Class = 12 Then
Me.Class.DefaultValue = 12 And Me.Image38 = /pictures/Year12.gif
Else: Me.Class.DefaultValue = 13 And Me.Image38 = /pictures/Year13.gif
End If
End Sub