Connecting Tech Pros Worldwide Forums | Help | Site Map

Why these divisions are not the same

Newbie
 
Join Date: Dec 2006
Posts: 14
#1: Dec 11 '06
How could I make

Me.Hours = Me.Minutes / 60 to be the same as [Minutes]/60.

Me.Hours = Me.Minutes / 60 doesn't give the correct hour.
If I have 66 minutes, it only gives me 1 hour. But with [Minutes]/60, I get 1.1 hour

Michelle

msquared's Avatar
Administrator
 
Join Date: Aug 2006
Location: Dublin, Ireland
Posts: 10,880
#2: Dec 11 '06

re: Why these divisions are not the same


Quote:

Originally Posted by Michelle Anderson

How could I make

Me.Hours = Me.Minutes / 60 to be the same as [Minutes]/60.

Me.Hours = Me.Minutes / 60 doesn't give the correct hour.
If I have 66 minutes, it only gives me 1 hour. But with [Minutes]/60, I get 1.1 hour

Michelle

Michelle

You need to change the data type of hours from Integer/Long Integer to Decimal or Single.

Mary
Newbie
 
Join Date: Dec 2006
Posts: 14
#3: Dec 11 '06

re: Why these divisions are not the same


Hi Mary,

Where can I change the data type to single or decimal. The table does not have the option to change the data type to Single or decimal.

Michelle
Newbie
 
Join Date: Dec 2006
Posts: 14
#4: Dec 11 '06

re: Why these divisions are not the same


Thanks Mary, it works . Michelle
msquared's Avatar
Administrator
 
Join Date: Aug 2006
Location: Dublin, Ireland
Posts: 10,880
#5: Dec 11 '06

re: Why these divisions are not the same


Quote:

Originally Posted by Michelle Anderson

Thanks Mary, it works . Michelle

You're welcome Michelle

Mary
Reply