Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Work Order Lessons    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Access Work Order Seminar
Lynda C 
   
12 years ago
Hi Richard,
I am still having problems with the schedulingF returning errors.  I believe this is to do with my location settings and the date format.

I have downloaded your student database, and it is returning the same error.

When I type in the begindatetime field, I get the following error:

Run-time error '3075':
Syntax error (missing operator) in query expression 'WorkerID= AND ScheduleID <> 25 AND BeginDateTime < #17/9/2014 7:00:00 a.m.# AND EndDateTime > #17/09/2014 7:00:00 a.m.#'.

If I then click debug, this is where the error is...

Private Sub BeginDateTime_AfterUpdate()

    If Hour(BeginDateTime) = 0 And Minute(BeginDateTime) = 0 Then
        BeginDateTime = BeginDateTime + (9 / 24)
    End If
    
    ' check for conflicting appointments
    Dim ID As Long
    Dim MyReply
    'On Error Resume Next
    ID = 0
ERROR IS HERE   ID = Nz(DLookup("ScheduleID", "ScheduleT", "WorkerID=" & WorkerCombo & " AND " & _
        "ScheduleID <> " & ScheduleID & " AND " & _
        "BeginDateTime < #" & BeginDateTime & "# AND " & _
        "EndDateTime > #" & BeginDateTime & "#"), 0) ERROR ENDS HERE
    If ID <> 0 Then
        'we have a conflict!
        MyReply = MsgBox("Scheduling CONFLICT found. Keep appointment anyhow?", vbYesNoCancel)
        If MyReply = vbNo Then
            BeginDateTime = Null
            EndDateTime = Null
            Exit Sub
        End If
    End If

    If IsNull(EndDateTime) Then
        EndDateTime = BeginDateTime + (1 / 24)
    End If

I am convinced my problems with dates in access, all stem from the fact that my computers location and regional settings are for New Zealand.

I've tried everything, googling, looking at Allen Brownes international date post etc, but I really don't know how to fix this.  And as I said, even downloading your student database, then reports errors.

Please help me.

Thanks
Lynda

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Work Order Lessons.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/17/2026 7:54:00 AM. PLT: 0s