I have a form that I would like to set an On_Current event that changes the location of various controls based on an If/Then statement. I thought that just using Me.ControlName.Top would work but instead of setting the control's top to the desired location, it sends it to the very top of the form.
Here is what I have so far:
This is just for an April Fools joke, so if it requires a lot of crazy coding I'm not super invested in it. The objective is to change the database's opening form to replace the standard label and logo with a picture of a creepy girl on April 1st. The problem is that the picture is larger than the usual title label and logo, so I have to lower everything else to make room.
Any ideas?
Here is what I have so far:
Code:
Private Sub Form_Current()
If Date = #4/1/2016# Then
Me.Box1.Top = "5.6563"
Me.Girl.Visible = True
Else
Me.Box1.Top = "2.2917"
Me.Girl.Visible = False
End If
End Sub
Any ideas?
Last edited: