I allow the user the option to set a header image (Company logo) in their reports. To implement it I dynamically set the values via the Report's Open event.
Here's the code:
With Me.imgLogo
.Picture = Application.CurrentProject.Path & "\" & TempVars!LogoFile
.Height = TempVars!LogoH
.Width = TempVars!LogoW
.Top = TempVars!LogoT
.Left = TempVars!LogoL
.Visible = True
End With
In the Immediate Window:
?tempvars!LogoH
1.07995
?me.imgLogo.Height
1
Why is Access dropping the fractional part of the value after the assignment?
Here's the code:
With Me.imgLogo
.Picture = Application.CurrentProject.Path & "\" & TempVars!LogoFile
.Height = TempVars!LogoH
.Width = TempVars!LogoW
.Top = TempVars!LogoT
.Left = TempVars!LogoL
.Visible = True
End With
In the Immediate Window:
?tempvars!LogoH
1.07995
?me.imgLogo.Height
1
Why is Access dropping the fractional part of the value after the assignment?