Page 4 of 4 FirstFirst 1234
Results 46 to 49 of 49
  1. #46
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    jzwp11



    Thanks for attaching the A2003 version. May be it's something to do with my region, but I only works for me if the date criteria is formatted:
    Code:
    If DCount("*", "tblAppointments", "AppointmentDate=#" & Format(Me.AppointmentDate, "mm/dd/yyyy") & "# AND ApptTimeID=" & Me.lstTimes) > 0 Then
        MsgBox "The appointment time for the indicated date has already been reserved"
        Cancel = True
    End If
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  2. #47
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    SQL only sees dates as mm/dd/yyyy irregardless of your regional settings. Allen Browne has details on his site.

  3. #48
    cheyanne is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Location
    Valencia, Spain
    Posts
    91

    Resolved at long last

    Hi Guys

    Just a quick note to say that, with thanks to both your generous efforts, I have managed to produce frmAppointments.

    Briefly if an assistant tries to "double book" an appointment, they get a MsgBox telling them so and asking them offer the Client another appointment time.

    I also managed to put a sub form, in the bottom half of frmAppointments, which shows appointments that have been already booked for that day.
    This will serve as a very useful visual display for those wanting to book an appointment for a Client.

    I am really pleased with the end product and send my sincere thanks for both your efforts.

    I shall now mark the post Solved.


    Regards from Spain


    Cheyanne
    Attached Thumbnails Attached Thumbnails Appoinments.jpg  

  4. #49
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I'm glad Bob & I were finally able to get you to a solution. Good luck with your database.

Page 4 of 4 FirstFirst 1234
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Add appointment to public calendar
    By avarusbrightfyre in forum Import/Export Data
    Replies: 4
    Last Post: 02-19-2013, 11:00 AM
  2. Appointment scheduler
    By cheyanne in forum Forms
    Replies: 1
    Last Post: 06-03-2012, 07:29 AM
  3. Appointment Calendar Scheduling
    By IdleJack in forum Access
    Replies: 4
    Last Post: 08-18-2011, 07:29 PM
  4. Appointment Booking Database
    By richie2837 in forum Access
    Replies: 1
    Last Post: 07-16-2011, 01:39 AM
  5. Replies: 2
    Last Post: 11-29-2009, 12:00 PM

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