Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    athyeh - can you tell us what the wand/scanner actually does? Does it act completely as if the lines scanned are typed in, or what? And, is there one or more physical buttons on the wand that can send messages to the computer? If so, how are those buttons "perceived" by Access?

    The data entry process should be able to use the wand as a powerful and effective interface tool, if we can identify how the wand actually interacts with the computer. For instance, if buttons on the wand send the equivalent of hitting (tab) or (enter), then you can make entry pretty easy. If they are programmable so that the buttons can send any arbitrary keystrokes, then you can make it very easy.

  2. #17
    athyeh is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    170
    June07 and DalJeanis, thank you both very much for your replies. Both of your posts have been critical to bringing me to this point.

    Right now:

    I have frmFORM with 4 fields: LID, Op, Time, Process

    I am using an AfterUpdate with following code to: "freeze" desired fields, create new records, after a user uses the wand to scan into LID

    Const cQuote = """"
    Me!Op.DefaultValue = cQuote & Me!Operator.Value & cQuote
    Me!Time.DefaultValue = cQuote & Me![Time of Production].Value & cQuote
    Me!Process.DefaultValue = cQuote & Me![Process Type].Value & cQuote
    RunCommand acCmdSaveRecord
    Me.Requery

    My question is now: How do I get a a "ticker" or "count box" on the form that records how many LID's people are scanning in for each "Time"?

    Is it a query attached to a textbox, that queries the time in "Time"?

  3. #18
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Instead, I'd set a temp variable to zero when the user selects any of the relevant values on the main form, then I'd add 1 to the temp variable at the beginning of each time your above code runs. Whether or not you display the value is up to you.

    I posted the syntax and examples of using tempvars on this thread https://www.accessforums.net/code-re...ars-36353.html

  4. #19
    athyeh is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    170
    Quote Originally Posted by Dal Jeanis View Post
    Instead, I'd set a temp variable to zero when the user selects any of the relevant values on the main form, then I'd add 1 to the temp variable at the beginning of each time your above code runs. Whether or not you display the value is up to you.

    I posted the syntax and examples of using tempvars on this thread https://www.accessforums.net/code-re...ars-36353.html
    Hi Dal Jeanis,

    Really appreciate your reply, but your linked post is way over my head. Can we walkthrough it/break it down? Right now I'm looking at Greek.

  5. #20
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Might be easier for you to just add another text box on the form. For instance, you could call it txtcounter. You can set its Visible property to No if the user doesn't need to know how many he's scanned.

    In the After Update event of LID, Op, Time, Process, you have a line that says
    Code:
    txtCounter = 0
    It wouldn't hurt to do that in all of those fields, but probably Time and Process are the only two that are necessary. Depends on how you expect the screen to be used.

    Then, in the code that kicks off when each one is scanned, you put code like this:
    Code:
    txtCounter = txtCounter + 1
    That's it.

  6. #21
    athyeh is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    170
    Quote Originally Posted by June7 View Post
    Code to carry forward the selected values to new record: http://access.mvps.org/access/forms/frm0012.htm

    Probably code in the 'scanned' textbox AfterUpdate event can move to new record: DoCmd.GoToRecord , ,acNewRec
    What about carrying forward a "Yes/No" value?

    Const cQuote = """"
    Me!Operator.DefaultValue = cQuote & Me!Operator.Value & cQuote
    Me!Process.DefaultValue = cQuote & Me!Process.Value & cQuote
    RunCommand acCmdSaveRecord
    subLastRecord.Requery
    Me.Requery

    Does not Carry forward Yes/No Checkbox value..

  7. #22
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Y/N field is not text type. Don't use the cQuote variable. Worked in my test.

    Don't need to specify Value property. Value is the default property of data controls.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #23
    athyeh is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jun 2013
    Posts
    170
    Thank you.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to I update access with an excel sheet?
    By superfly5203 in forum Access
    Replies: 5
    Last Post: 01-24-2013, 10:52 AM
  2. Replies: 26
    Last Post: 01-08-2013, 04:55 PM
  3. Multiple users to access excel sheet
    By nccool2104 in forum Access
    Replies: 0
    Last Post: 06-22-2012, 01:13 PM
  4. Replies: 6
    Last Post: 10-17-2011, 11:16 PM
  5. Access to Excel transferring multiple rows to single row
    By peter_lawton in forum Import/Export Data
    Replies: 10
    Last Post: 09-23-2009, 10:16 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