Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft access can't find the macro......

Status
Not open for further replies.

Jphillis

Technical User
Jun 27, 2001
19
0
0
GB
I am trying to calculate the total time from a start and finish time. I am using the experssion:

txtDiff = DateDiff("h", txtStart, txtEnd) & ":" & DateDiff("n", txtStart, txtEnd) Mod 60

as show in a thread, but when i try to execute it the message "Microsoft access can't find the macro txtDiff = DateDiff("h", txtStart, txtEnd) & ":" & DateDiff("n", txtStart, txtEnd) Mod 60. The macro does not exist."

As far as i am aware i am not using a macro. Should i be?

 
Is the statement the control source of a text box? If so, try this in the control source.

= DateDiff("h", [txtStart], [txtEnd]) & ":" & DateDiff("n", [txtStart], [txtEnd]) Mod 60
Terry

"I shall try to correct errors when shown to be errors, and I shall adopt new views so fast as they shall appear to be true views." - Abraham Lincoln
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top