Ask Your Computer Question. Computer Experts Answer You ASAP.

(Not a Computer Question?)

Useing a MS Access Database with BarCoding. After the bar ...
Sent to Computer Experts May 25 05:04 AM

Useing a MS Access Database with BarCoding. After the bar code is scanned I need the focus to restore back to the bar code field ready to scan another bar code. Do you have any code tips to help me.

 

Optional Information:
OS: Windows XP; Browser: IE

Already Tried:
I have tried an event proceedure on the lost focus event which acNewrecord and have called a pop of form on time event that closes automatically and sets the focus back to the field. The main problem is it doesn't erase the field allowing a new entry. It just keeps the old bar code I want to be able to add multiple bar codes giving the pop up as feed back Green for good and Red for not good (Not in List event) I have one form tied to the Green (Lost Focus) and one Event tied to the Red form Not in list event.

Customer (name blocked for privacy)
Reply
May 28 2:07 PM (9 minutes and 15 seconds later)
         
Reply to dawber39's Post: I am using Access 2003
Answer
May 28 2:10 PM (3 minutes and 10 seconds later)
         
REPLIEDCheck Mark
I beleive you want something like this in the code after the scanning action:

DoCmd.GoToRecord , , acNewRec
Me.TexBoxObject.SetFocus


Your object name goes in place of TexBoxObject - this will add new record, and then set the focus on the object you name


If I have helped you I would appreciate it if you would please take a moment to leave some feedback for me
Reply
May 28 2:13 PM (2 minutes and 45 seconds later)
         
Reply to dawber39's Post: I will try stand by
Reply
May 28 2:38 PM (25 minutes and 13 seconds later)
         
'O.K. I have made some progress.... This works well when someone scans a barcode that is "In the List" Now, how about when it a "Not in the List Event" I want it to do the same procedure. Clear out the bad data and allow another card to be scanned.

'Here is the good.

Private Sub SSN_Exit(Cancel AS Integer)

DoCmd.GoToRecord , , acNewRec
Me.SSN.SetFocus
DoCmd.OpenForm "FrmRecallSuccess"

End Sub

'Here is the code for the "Not in List Event"

Private Sub_NotInList(NewData As String, response As Integer)

response = acDataErrContinue
DoCmd.OpenForm "frmRecallAttentionNeededMessage"
DoCmd.GotoRecord , , acNewRec
Me.SSN.setfocus

End Sub
Reply
May 28 3:00 PM (12 minutes and 5 seconds later)
         
Reply to dawber39's Post: Scaning of the actual barcode. It's a single field on a form. All it does it accept barcodes. This field is a combobox that is linked to the primary key the SSN. I have attached the event to get a Green form when the data in in the list and get a Red form when the data in not in the list. After the scan I wish the field to evaluate if the data is in the list. This forms a table of barcode entries that I latter do a find unmatched query on the know data with the data retireded. Wa La! I get a list of people that did not sign in. All the personnel who attend a metting have a barcoded Id card. I can find out who did attend my creating this relaitonship. The database works well when you just enter SSN numbers. I am trying to have the user not have to touch the screen or keys at all. I just want them to get a visual indicator that they signed in successfully or not. A person at the door will monitor the screen without interferance unless some scans a card that is not in the list. The screen with turn red and then the person will need to print their name on a list and sign it to get credit for being present for the meeting. It will also help identify bad ID cards or barcodes. Does that help a little. It's almost 1000 PM where I am. Getting a little tired.
Reply
May 28 3:24 PM (5 minutes and 36 seconds later)
         
Wow that was awful, Let me try again.

Scanning of the actual barcode activates the event. It's a single field on a form. All the form does is accepting barcode scans. This field is a combo box that is linked to the primary key the SSN. I have attached the event to get a green form when the data is in the list and get a Red form when the data in not in the list. After the scan I wish the field to evaluate if the data is in the list and open the appropriate form. This forms a table of barcode entries that I later do a find unmatched query on. The know data associated with the barcode data. Wa La! I get a list of people that did not sign in. All the personnel who attend the meeting have a bar-coded ID card. I can find out who did attend by creating this relationship to the know data. The database works well when you just enter SSN numbers. I am trying to have the user not have to touch the screen or keys at all. I just want them to get a visual indicator that they signed in successfully or not. A person at the door will monitor the screen without interference unless someone scans a card that is not in the list. If the screen turns red then the person will need to print their name on a list and physically sign-in to get credit for being present at the meeting. It will also help identify bad ID cards or barcodes. Does that help a little? It's almost 1000 PM where I am and I am getting a little tired.
Reply
May 28 3:39 PM (15 minutes and 8 seconds later)
         
Well, that didn't work that well. I like the If statement part. I think the code is missing something or is wrong is some way. I attached it event to the lost focus instead of the ON eXIT EVENT. With the same result. Now the Attentionneeded message appears and the Green one gets skipped.
Answer
May 28 3:39 PM (17 seconds later)
         
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
Reply
May 28 3:40 PM (37 seconds later)
         
You deserve more than 15 bucks, how do I do that?
Answer
May 28 3:47 PM (7 minutes and 36 seconds later)
         
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
Reply
May 28 4:11 PM (24 minutes and 16 seconds later)
         
AAAAAH, It got stuck on

If Exists SSN then (Syntax error)

I have a table

(tblrecallsignin) that has these fields;

SSN (Control Source) showing only the barcode field in the combobox event though what is actually entered is the Barcode
(look up column that selects the SSN with the underlined SQL statements row source being SSN.

Arrival Time

POST

Onduty


The Form is based on the tblpersonalinfo
Reply
May 28 4:21 PM (6 minutes and 4 seconds later)
         
The Main table= tblpersonalinfo

Fields=
SSN
First Name
Last Name
Middle Initial
Barcode

The Second Table=
tblRecallsignin
SSN=Shows SSN


Form for First Table is Normal
SSN
First Name
Last Name
Middle Initial
BarCode

Form for Second Table is based on first table and build from it
SSN (Look UP to First Table)
ArrivalTime= Now()
Reply
May 28 4:29 PM (3 minutes and 48 seconds later)
         
Reply to dawber39's Post: tblrecallsignin
Reply
May 28 4:31 PM (1 minute and 36 seconds later)
         
The field on the form reachs out to the tblpersonnelinformation in the form of a look up.
Reply
May 28 4:32 PM (1 minute and 44 seconds later)
         
SELECT tblpersonnelinformation.SSN, tblpersonnalinformation .[CAC Card BarCode] FROM tblPersonnelInformation;
Answer
May 29 9:51 PM (9 hours and 49 minutes and 3 seconds later)
         
THIS ANSWER IS LOCKED!
You can view this answer by clicking here to Register or Login and paying $3.
Think you can answer this question?
Login or Become an Expert

 

DISCLAIMER: You acknowledge that any information you may obtain from individuals you contact through use of the Just Answer service comes from those individuals, not from Just Answer!, and that Just Answer is not in any way responsible for any of the information these third parties may supply. The site and services are provided "as is" with no warranty and no representations are made regarding the qualification of an Expert. Responses and comments on Just Answer! are for general information and are not intended to substitute for informed professional advice (such as medical, legal, investment or accounting) and do not establish a professional-client relationship. Just Answer! is not intended or designed to address EMERGENCY QUESTIONS which should be directed immediately by telephone or in-person to qualified professionals. Please carefully read the Terms of Service.

Just Answer! > Computer and Software Help