Results 1 to 2 of 2
  1. #1
    Littlma is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2011
    Posts
    1

    Question about Times in Access Table

    Good Afternoon All

    I have a question with regards to a Database that I am building as a project. I am a therapist and I built a Client database that with apointment table so it can basically record the history of my clients appointments. Here's the fundametals of what I want my appointment table to do:

    I have a field called TimeNextAppointment - this is formatted to short time and I have done a lookup to a Time_tbl that has from 00:00hrs to 23:30hrs (my appointments go in half hour increaments). Also in Appointment_tbl I have a field called DurationSession, this looksup data in Duration_tbl, and is gives the options from 30 to 240 minutes slots. So what I want to achieve is when I select the appointment time, say 14:00hrs and the duration of the session is say 30 mintues in the FinishTime field I would like it to auto populate with 14:30hr.

    Can this be done?? and how can I achieve this??.

    I have searched everywhere on web and in books but have not found a solution that helps me.



    Thank you in advance for assistance given.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    If you are always storing your duration in minutes you could use the dateadd function

    Dateadd("n", [TimeField])

    for the dateadd function n means minutes, and timefield would be your appointment starting time.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Using lookup data for table 1 mutible times in table 2
    By mbjazz in forum Database Design
    Replies: 5
    Last Post: 04-26-2011, 01:18 AM
  2. Report duplicating itself many many times
    By TrudyD1474 in forum Reports
    Replies: 1
    Last Post: 06-24-2010, 11:59 AM
  3. Query: How many times does a value exist?
    By hognabbt in forum Queries
    Replies: 1
    Last Post: 01-10-2010, 01:33 PM
  4. Top 3 times for each distance
    By CraigBFG in forum Queries
    Replies: 0
    Last Post: 06-24-2009, 09:19 AM
  5. Access Table - Relationship Question
    By vixtran in forum Database Design
    Replies: 5
    Last Post: 06-12-2009, 10:10 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums