A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Modules



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2004, 01:51 PM
stella
external usenet poster
 
Posts: n/a
Default Modules

I have a query set up with time in seconds. I have manage in my wisdom to create a module to convert time into hh/mm/ss....how do i combine the two? If my query is called Time and the two columns are Time1 and Time2., the module is called Convert?

s
  #2  
Old May 25th, 2004, 03:06 PM
Marshall Barton
external usenet poster
 
Posts: n/a
Default Modules

stella wrote:

I have a query set up with time in seconds. I have manage in my wisdom to create a module to convert time into hh/mm/ss....how do i combine the two? If my query is called Time and the two columns are Time1 and Time2., the module is called Convert?



Maybe it's just a terminology difference, but a module is
only a container for procedures, either Sub or Function.

A Public Function in a standard module can be called from
just about anywhere in Access, so your query could have a
calculates field:

Timehms: Convert([Time1])
--
Marsh
MVP [MS Access]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.