473,406 Members | 2,698 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,406 software developers and data experts.

Data entry format

Is there any way that I can enforce an input mask when I am asking a user to
input criteria? An example would be:

SELECT Peeps.[First Name], Peeps.Surname, Peeps.DOB
FROM Peeps
WHERE (((Peeps.DOB) Like [Enter Month]));

I would like the box to come up with something like "Enter month __/__/__"
so that all they enter are numeric values only and no slashes. Any help
would be greatly appreciated.

Mark
Nov 12 '05 #1
2 1489
"Mark Reed" wrote
Is there any way that I can enforce an
input mask when I am asking a user to
input criteria? An example would be:

SELECT Peeps.[First Name], Peeps.Surname, Peeps.DOB
FROM Peeps
WHERE (((Peeps.DOB) Like [Enter Month]));


Create a Form on which you provide Controls into which the user enters, or
from which the user selects the criteria. Then use what is entered to create
the WhereCondition argument of DoCmd.OpenForm or DoCmd.OpenReport; or use
what is entered to build an SQL string that you pick up and substitute for
the RecordSource in the Open event of the Form or Report.

You can't do what you want by creating a Parameter query, as you have done.

Larry Linson
Microsoft Access MVP

Nov 12 '05 #2
On Sat, 24 Jan 2004 00:47:15 -0000 in comp.databases.ms-access, "Mark
Reed" <ma*********@ntlworld.com> wrote:
Is there any way that I can enforce an input mask when I am asking a user to
input criteria? An example would be:

SELECT Peeps.[First Name], Peeps.Surname, Peeps.DOB
FROM Peeps
WHERE (((Peeps.DOB) Like [Enter Month]));

I would like the box to come up with something like "Enter month __/__/__"
so that all they enter are numeric values only and no slashes. Any help
would be greatly appreciated.


Create a popup form with a textbox with required input mask, then the
query can look something like:

select .... where dob like forms!MyPopupForm!MyTextBox

May need playing with a bit, the resulting reference to an input
masked textbox may not be quite what you expect.

--
A)bort, R)etry, I)nfluence with large hammer.
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: lawrence | last post by:
I had some code that worked fine for several weeks, and then yesterday it stopped working. I'm not sure what I did. Nor can I make out why it isn't working. I'm running a query that should return 3...
3
by: | last post by:
Hi, I am an intermediate computer science student and I am in need of a "macro type" tool/language that will let me automate a data entry process. The data entry is rather simple but requires...
7
by: Mike | last post by:
List, I call this a "Parsing Problem", but it could be called formatting or regular expressions as well. I have a set of data that was formerly processed on an OS390 (hence a lot of...
1
by: panche | last post by:
I'm developing a fairly simple user control that has two textboxes for date/time entry (a from date/time and a to date/time). One of my requirements is that there should be no button that sets...
2
by: x | last post by:
hi i am a pilot by profession. i want to create a database of my logbook using ms access 2002. i am facing a problem regarding the format of time field. when i select "Data/Time" data type for my...
2
by: Adam Honek | last post by:
I have a form. It has serveral text boxes for user data entry. I could of course write code to check if each is empty before proceeding to save this data to a file. Is there any global way...
5
by: Matuag | last post by:
How can I enable Caps Lock after the form or database opens?
1
by: admin.offshoredataentry | last post by:
Data Entry Outsourcing provides time bound, cost effective and qualitative Data Entry also provides numeric data entry, textual data entry, image data entry, data format, data conversion and also...
0
by: dataentryoffshore | last post by:
Get a Discount up to 60% on data entry, data capture, dataentry services, large volume data processing and data conversion services through offshore facilities in India. Offshore data entry also...
6
by: Tomasz J | last post by:
Hello developers, I bind my TextBox control specyfying a format stored in my application global ApplicationContext object - it has a static string CurrencyFormat property. The problem - this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.