Solved

MSaccess input form question

Posted on 2013-02-06
2
402 Views
Last Modified: 2013-02-06
Hi. I have an input form that asks for a date input. I want to make sure the date entered is a Monday always. What would be the best approach to this. Can I do this in the table as a check or in a form where the date is entered or in a vba function returning back to the form if there is an error? I assume I could use the following function?

DatePart ("w", StartDate)
0
Comment
Question by:PawloA
2 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 38860767
or use the weekday() function, or Format() and ask for the day spelled out, so you can check for "Mon" or "Monday"

Jim.
0
 
LVL 1

Author Closing Comment

by:PawloA
ID: 38860860
Thanks. Weekday() worked for me.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Oracle - Stored Procedure Privilge access 3 23
Create A query for disabled users 5 16
sql query Help 12 34
Merge Statement 3 9
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now