473,397 Members | 1,949 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,397 software developers and data experts.

Time in access

I have a simple form that will gather it's information from a card
reader. The form has 3 fields SSN which is gathered from the card
swipe. Can I make access automaticly hit enter when it hits the last
digit in this field, it will always be 11 digits (000-00-0000)? I wold
also need it to to fill in 2 other fields Date, and Time. I would need
the exact Date and time of the swipe or entry. How do I pull from the
PC's time to do this. At the moment I have the Date field set for
defualt value =date() and the Time field default value set =time() but
it populates the date and time that right after the last entry. If
anyone has anything that would work please let me know. Thanks

Nov 13 '05 #1
3 1402
cf******@yahoo.com wrote:
I have a simple form that will gather it's information from a card
reader. The form has 3 fields SSN which is gathered from the card
swipe. Can I make access automaticly hit enter when it hits the last
digit in this field, it will always be 11 digits (000-00-0000)? I
wold also need it to to fill in 2 other fields Date, and Time. I
would need the exact Date and time of the swipe or entry. How do I
pull from the PC's time to do this. At the moment I have the Date
field set for defualt value =date() and the Time field default value
set =time() but it populates the date and time that right after the
last entry. If anyone has anything that would work please let me
know. Thanks


Try seeting the AutoTab property to true. That should cause the focus to
aiutomatically move to the next control when the maximum allowed characters
is entered.

DateTimes in Access always include both a Time and a Date so why have two
separate fields? Just use Now() in a single field and you will get both the
date and the time. To set this at the moment that the card is swiped use
the AfterUpdate of that control...

Me.SwipeTime = Now()

BTW bad idea to have fields or controls named "Date" and/or "Time" as these
are reserved words in Access/VBA.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
A control's Auto Tab property (set to "Yes") will move the cursor to the
next control after the last permitted character is entered. A single
field/control can capture the date and time of the last data entry. In the
form's Before Update event, put code like:
Me!myUpDate = Now()

-Ed

<cf******@yahoo.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I have a simple form that will gather it's information from a card
reader. The form has 3 fields SSN which is gathered from the card
swipe. Can I make access automaticly hit enter when it hits the last
digit in this field, it will always be 11 digits (000-00-0000)? I wold
also need it to to fill in 2 other fields Date, and Time. I would need
the exact Date and time of the swipe or entry. How do I pull from the
PC's time to do this. At the moment I have the Date field set for
defualt value =date() and the Time field default value set =time() but
it populates the date and time that right after the last entry. If
anyone has anything that would work please let me know. Thanks

Nov 13 '05 #3
Thank you guys very much I tried the after update before but I put it
under the Date and time ont the SSN.

Nov 13 '05 #4

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

Similar topics

2
by: rbt | last post by:
I'm using the standard NTFS file system. The only time the access time is updated is when the file is modified or saved (with no changes). What's up with that? Shouldn't a read/view update the...
4
by: Mark Reed | last post by:
Hi all, I have a query (query1) which shows scan date, scan time & operator. One scan = 1 record. What I want to do is create a report based on query 2 from query1 which shows all the scans AND...
7
by: Morley | last post by:
1. Is the run time version a self-contained file which includes Access files and a database or are there separate Access files and a database (.mdb) file? 2. If the database file is separate,...
2
by: Steve Miller | last post by:
hello... i am a 'user' of access, meaning, i import excel files, join, and merge....that's about the extent of my expertise with ms-access. my boss wants me to create an access application that...
3
by: luscus | last post by:
Thanks for all the responses on my first question. Unfortunately the answers I was given were too complicated for my small brain , and neophite condition to understand. So if you could talk down to...
9
by: Bob Achgill | last post by:
I would like to use the timestamp on files to manage the currency of support files for my VB windows application. In this case I would only put the timestamp of the file in the management database...
5
by: Takeadoe | last post by:
Gang - I'm generating date and time variables from scanned forms. Currently, the date and time values are as follows: 06/26/2006 and 11:30 AM. I've written VBA code to combine them into a...
3
by: Jim in Arizona | last post by:
I have a gridview that's being populated from an access db query. The problem I'm having is that the date/time fields in access that are populating the gridview are showing both date and time, when...
9
by: pob | last post by:
I currently have a procedure that loops thru a recordset to determine what files need to be loaded to my database. The naming convention of the files has always been accounts.txt, namelist.txt,...
3
by: Paul H | last post by:
Most of my projects are developed in Access 2003. I have not even installed Office 2007 yet! I need to buy VSTO to get the run-time licence for Access 2003. No doubt I will soon need a run-time...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.