473,385 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to remind the user to re-enter the correct date

When you enter date 31/06/2016 i.e. 31 June 2016 to a form an error message says;

Run-time error ‘3421’:
Data type conversion error.

Can you help me to fix using a pop up message to remind the user to re-enter the correct date?
Jun 23 '16 #1
3 933
prw1
2
A couple of things you can do.
1) Do a Google search for access error handling. There is a ton of info out there.

2) Put a format mask on the date field. Again, if you don't know how Google date formatting in access vba (or something similar.

3) When a user gets the error, display a friendlier error message (i.e. "Please enter a valid date" in a message box.)

4) Ensure that your date field is in the proper format that you want. And that the field in, in fact, a date field.
Jun 23 '16 #2
Thank you, prw1, for your reply.
I will take full consideration the information you provided.

Thank again.
Jun 24 '16 #3
jforbes
1,107 Expert 1GB
I think you can change the Format of the TextBox to Short Date and Access will make sure the user enters a valid date.
Jun 24 '16 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Funnyweb | last post by:
I have just notices that the date() function is not returning the correct date/time on my "server". I am running apache2 on my winxp pro laptop. My system clock is set to the correct date,...
3
by: Himanshu Dora | last post by:
Hi I have set with lcid value. but i am not able to overcome my nt server regional setting. Actually i want a date in mm/dd/yyyy. But i get date as mm/dd/yy. How to ensure that i shall always get ...
4
by: Matteo | last post by:
Hy everybody. I'm not a html writer, but a sysadmin who's trying to help a user able to compile an online form with IE but not with Mozilla (Moz1.6, Ns7.1, Firefox 0.8+) due to a javascript date...
1
by: Dave Mann | last post by:
Right i have tried but failed! I have a Form and a subform Fields in Sub form are:- Planned - Checkbox Unplanned - Checkbox Maint Type - Dropdown selection Date Done Description
5
by: Bryan Yeo | last post by:
Trying to get the user password expire date from AD, but there is no such field. What I could get is the PasswordLastChanged property. Is there anyway I could calculate the date or something? ...
2
by: Li Pang | last post by:
User can changes his/her local date setting, i.e., "M/d/yyyy", "dd/MMM/yyyy", .... etc. which interprets the date (string type) in the different way. for example "02/05/2004" can be the second of May...
5
by: Chris Noble | last post by:
A user account expiration date can be set using the following code // Use the DirectoryEntry.InvokeSet method to invoke the // AccountExpirationDate property setter. usr.InvokeSet(...
15
by: vbanewbie2 | last post by:
When the user enters a date in the date field (txtbox) the data seems to be going to only one date tab (current month). I need the data to go into the correct month tab. another words if the data...
1
by: Akinyemi | last post by:
Hi, I started learning Java a year ago. Before then I had written a Visual Basic Program that maintains student information. I now want to write the same program in Java. But I do not know how to...
3
by: stress999 | last post by:
How do you force a user to enter the correct dates (In & Out dates) while comparing 2 date fields in MS Access. User should get an error message indicating "Out date should be greater than In date.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.