Forums: Access query expression to DAL - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Access query expression to DAL Rate Topic: -----

#1 User is offline   Arnel 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 38
  • Joined: 12-October 07

Posted 12 March 2010 - 08:53 AM

Need help converting the following MS Access query expression into DAL

EllapseMinutes: DateDiff("n",[EventDate]+[EventTime],[EndDate]+[EndTime])
RunTime: [EllapseMinutes]\60 & Format([EllapseMinutes] Mod 60,"\:00")
0

#2 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 8453
  • Joined: 03-February 03

Posted 13 March 2010 - 01:57 AM

You need to explain what kind of query (select, update, insert) you talking about.
Best regards,
Sergey Kornilov
0

#3 User is offline   Arnel 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 38
  • Joined: 12-October 07

Posted 19 March 2010 - 03:30 AM

View Postadmin, on 13 March 2010 - 11:57 AM, said:

You need to explain what kind of query (select, update, insert) you talking about.


I modified the EVENTS template to include 2 new fields. The duration in minutes and another in hours format.

The field expressions above, work in Access 2003 both in the Select and Update query.

How is it done in DAL so that the field can be updated when the user exits the form? Can you please assist.
0

#4 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 8453
  • Joined: 03-February 03

Posted 19 March 2010 - 04:55 AM

Calculated fields cannot be updated. You can add them to SELECT SQL Query though.
Best regards,
Sergey Kornilov
0

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users