Results 1 to 11 of 11
  1. #1
    OpsO is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    12

    Enter After Update

    I am scanning a barcode and using a module to convert an ASCII string representing a Base 32 number to binary. The problem I'm having is when I scan the barcode, I have to press enter to complete the process.



    Any help would be much appreciated. I have given the VBA for the form below. I have not included the VBA for the module for security purposes, but if I need to expand on it to get this to work, I will.

    VBA for Text box on form which barcode is scanned.

    Private Sub Text0_AfterUpdate()
    Me.Text0 = Format$(CACDeComp(Mid$(Me.Text0, 2, 6), 6), "0000000000")
    End Sub

    VBA for reset button on form

    Private Sub Command0_Click()
    Me.Text0.Value = Empty
    Me.Text0.SetFocus
    End Sub

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Every barCode reader I have ever heard about has the ability to add a CR or TAB to the end of the BarCode. Is this not an option for you?

  3. #3
    OpsO is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    12
    No. I do not have control of the Barcode. It is produced by another organization.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If you know how many characters are in each BarCode you could look at the length of the .Text property in the OnChange event and kick it when complete. The only other thing I can think of is to start a timer function with the OnChange event of the TextBox. It need not be long (milliseconds probably) since the data is being entered with a wand.

  5. #5
    SteveF is offline Generally AccessAble
    Windows XP Access 2010 (version 14.0)
    Join Date
    Nov 2010
    Location
    Fourth Corner
    Posts
    123
    Quote Originally Posted by OpsO View Post
    No. I do not have control of the Barcode. It is produced by another organization.
    PMFJI, but that's not what RuralGuy asked regarding the barcode. The barcode itself will not have an "Enter" as part of it; but you should be able to program the barcode READER to add an "Enter" to the end of the decoded barcode string it sends to your application.

    Been there, done that, works great in an Access app.

    Steve

  6. #6
    OpsO is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    12

    Programming the Scanner worked

    Thanks alot for the info. Sometimes you have to look outside of the box.

  7. #7
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Were you able to configure the wand to add a CR to the code? Are we through here?

  8. #8
    OpsO is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    12

    Smile

    yes we are through. Thanks

  9. #9
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You could reconfigure the BarCode reader then?

  10. #10
    OpsO is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    12

    Thumbs up

    Yes. I downloaded the user manual and there was a code to scan which place a CR (Carriage Return) after each scan. Worked perfectly. I see you are from Colorado. Raised in Buena Vista here.

  11. #11
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Pagosa Springs here. I'll go ahead and use the Thread Tools and mark this thread as Solved for you.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Yes/No, If yes Enter Number
    By kennyrogersjr in forum Forms
    Replies: 1
    Last Post: 11-29-2010, 07:37 PM
  2. Enter Parameter Value
    By T001 in forum Access
    Replies: 1
    Last Post: 08-11-2010, 05:43 AM
  3. How do I enter data automatically?
    By ffurqana in forum Access
    Replies: 0
    Last Post: 07-08-2010, 07:47 PM
  4. Enter Parameter Value
    By gutes2 in forum Forms
    Replies: 3
    Last Post: 03-03-2010, 05:03 PM
  5. Enter Parameter Value
    By plesser in forum Access
    Replies: 1
    Last Post: 11-08-2008, 10:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums