I have a wedge mag stripe reader that I swipe when ask to input
information in a query.
How do I filter the unwanted characters.
Apparently there are two mag stripes that are read every time I swipe
the card.
The first line has the name information and the second line has the
number that I want to use.
The number looks like this when I swipe a card.
%00123478?
I need to filter out the % and the ?
I guess I will also have to filter out the first line of the mag
stripe which has the name info.
Any help will be appreciated.
Thanks 7 2975
If there is ALWAYS 8 characters between % and ?, then use:
Me!DesiredNumbe r = Mid([SwipedNumber],2,8)
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications re******@pcdata sheet.com www.pcdatasheet.com
<Fr***********@ lakeheadu.ca> wrote in message
news:11******** *************@o 13g2000cwo.goog legroups.com... I have a wedge mag stripe reader that I swipe when ask to input information in a query. How do I filter the unwanted characters. Apparently there are two mag stripes that are read every time I swipe the card. The first line has the name information and the second line has the number that I want to use. The number looks like this when I swipe a card. %00123478? I need to filter out the % and the ? I guess I will also have to filter out the first line of the mag stripe which has the name info. Any help will be appreciated. Thanks
The following is what a sample of the mag info looks like when I do a
swipe. The first line is the name information, which varies in length.
The second line is what I need the access querry to read, but only the
number. The field is set up as text because we want the zero's to show.
How do I modify the line you gave me;
Me!DesiredNumbe r = Mid([SwipedNumber],2,8)
to also strip off the name info.
Can I use this line as an expression in a query or do I need to put
this into access code.
If I create sample database with a couple of records with the number
0166120 in an ID field, build a query to search for this number using
the mag reader, how would I go about this?
The following is a sample of the mag stripe info.
%FRANK^TEST?
;0166120?
I couldn't remember what the search string function was in Access,
until I saw it in another thread. Here is what I successfully pulled
your ID string out of your sample data with. It uses InStr to find the
leading ";" and the len function to find the trailing bit of the string
to the next "?".
If you may have data after this, just do a search in the string again
for the next "?" and modifiy the MID statement.
DesiredNumber :
Mid([SwipedNumber],InStr([SwipedNumber],";")+1,Len([SwipedNumber])-InStr([SwipedNumber],";")-1)
You can also use a similar routine to pull the name out of the data as
well, looking for the "%", "^", and "?" characters. I would have
figured you could program the swipe reader for exactly what you wanted
and not all the other stuff. Go figure.
Alex. Fr***********@l akeheadu.ca wrote: The following is what a sample of the mag info looks like when I do a swipe. The first line is the name information, which varies in
length. The second line is what I need the access querry to read, but only
the number. The field is set up as text because we want the zero's to
show. How do I modify the line you gave me; Me!DesiredNumbe r = Mid([SwipedNumber],2,8) to also strip off the name info. Can I use this line as an expression in a query or do I need to put this into access code. If I create sample database with a couple of records with the number 0166120 in an ID field, build a query to search for this number using the mag reader, how would I go about this?
The following is a sample of the mag stripe info.
%FRANK^TEST? ;0166120?
Thanks for all your help Alex.
One problem I'm having is when I swipe the card at the query prompt to
enter information, the query wants to input the info into the table
instead of pulling up a record in the form.
What am I doing wrong?
Frank.Sebe...@l akeheadu.ca wrote: Thanks for all your help Alex. One problem I'm having is when I swipe the card at the query prompt
to enter information, the query wants to input the info into the table instead of pulling up a record in the form. What am I doing wrong?
Why don't you use a form? Have the mag stripe data go into a field on
a form and point the query at the form? You would get better results
with that.
I am to the point where I just use a form for everything. That way the
user can't mess stuff up as much.
Frank.Sebe...@l akeheadu.ca wrote: Thanks for all your help Alex. One problem I'm having is when I swipe the card at the query prompt
to enter information, the query wants to input the info into the table instead of pulling up a record in the form. What am I doing wrong?
Why don't you use a form? Have the mag stripe data go into a field on
a form and point the query at the form? You would get better results
with that.
I am to the point where I just use a form for everything. That way the
user can't mess stuff up as much.
I am using the switchboard form which points to a query then to a form.
If I click on a button on the switchboard that asks me to enter a 7
digit number. It goes to a query and then opens a form with the
appropriate record.
It works if I enter the number manually but when I swipe the number in,
the program thinks the info on the swipe should be input into the
table. It creates a new record instead of bringing up the requested
record. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jordan Peterson |
last post by:
Gecko renders the left-side #navarea as I intended, but IE6 puts about a
1em vertical gap between the <li> elements:
http://maba.org/members
I have cleaned up the markup and CSS somewhat, and I'm still in the
process of doing so, but in the meantime I'm hoping that there is a fix
for this discrepancy. It seems like the navarea markup and CSS is about
as clean as it can be, but perhaps I'm still missing something. Any ideas?
|
by: Erik Hendrix |
last post by:
Hi,
I have some questions related to stripe sets that I'm hoping someone here
can answer.
1) What happens to stripe sets when doing a database restore? Do they stay
as is?
2) What happens to stripe sets when doing a redirect database restore? Will
a new tablespace map be created by this and thus override the existing
|
by: Frank |
last post by:
I'm trying to access my database of records via a mag stripe reader.
I've created a querry that prompts me to enter a number. I thought that
I might just swipe the mag stripe and the appropriate record would come
up.
No luck. Do I need to purchase software to do this?
|
by: Tom Warren |
last post by:
I've ordered a mag stripe reader for Driver's Licenses but I want to
get a jump on raw data parsing. I have the
stdAAMVADLIDCardSpecs_092003.pdf which defines the structure of the
raw data, but I would like to double check before I start writing
parsing routines.
Does anyone have raw AAMVA data? The data doesn't have to be real but
the structure has to be correct.
Thanks
|
by: David Beck |
last post by:
I donwnload some files for processing every day that have unwanted
characters in them. In VB6 I use the InputB to read in the text and the
StrConv.
vLinesFromFile = StrConv(InputB(LOF(nFileNumGENERIC), nFileNumGENERIC),
vbUnicode)
If the string has any unwanted characters (e.g. Chr(26)), I use the
replace to remove them and save the file.
| |
by: ryan.arasteh |
last post by:
Hi,
I want to write a c# application to capture the contents of a
magnetic stripe card with a card reader attached to the USB or COM
port of the PC. Are there any libraries or anything available to
do this, or do I need to read directly from the these port? Any
suggestions welcome ;) or Any code samples :-0
|
by: Konrad |
last post by:
Hi
Can you point examples in .NET of
filtering (avoiding) displaying web pages with
unwanted content on machine with
ie?
Thanks
Konrad
|
by: et |
last post by:
How can I strip out unwanted characters in a string before updating the
database? For instance, in names & addresses in our client table, we want
only letters and numbers, no punctuation. Is there a way to do this?
|
by: =?iso-8859-1?Q?Johnny_J=F6rgensen?= |
last post by:
I've got a textbox where I filter the input in the KeyPress event to allow
only certain characters.
However, If the user cuts and pastes a text into the textbox, all text is
entered - not only the characters allowed. That doesn't surprise me, but
what is the best way of avoiding that and still only allowing certain
characters even when pasting???
TIA,
Johnny J.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |