hi all, i am new to vba and need some help please ,
i have the folloing code
Private Sub Report_Load()
If lngMyEmpID = 1 Then
Me.pm1.Visible = True
this works ok but what i would like after checking lngMyEmpID to see if its true i also want to be able to look at another cell [date1] and compare the date in that cell with todays date and if it is older than todays date only then will Me.pm1.Visible = True
can you help please
i have the folloing code
Private Sub Report_Load()
If lngMyEmpID = 1 Then
Me.pm1.Visible = True
this works ok but what i would like after checking lngMyEmpID to see if its true i also want to be able to look at another cell [date1] and compare the date in that cell with todays date and if it is older than todays date only then will Me.pm1.Visible = True
can you help please