Results 1 to 5 of 5
  1. #1
    rplum is offline Novice
    Windows 8 Access 2013 32bit
    Join Date
    Apr 2016
    Posts
    10

    Input prompt values stored into a table.

    Hello!



    Not sure if the correct section, please move if not.

    At my workplace we currently have a database file that is has a single button on a form, when you click the button it pops up with a prompt asking for the SKU number, at this point you scan the barcode on a box and it fetches the data (SKU number, location, description, pack size etc) from a linked table and prints the data onto a label which is then placed onto the box.

    What I am trying to accomplish (if possible) is after you scan the barcode of the box that the details (SKU number, location, description, pack size) are stored in a separate local table so we can run a report on what items were scanned, how many times, dates of the scans so we can track how many times an item shows up because it was damaged.

    I have tried a couple things with macros but nothing has worked so far. I know you can create a form and have it insert the record into the table but it won't work for this purpose. Any help is appreciated.


    Thanks!

  2. #2
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    Well, if the code can print a label, it can certainly append that same data (perhaps adding a field for date/time) to a table, with no additional form required. Probably not with a macro, though. VBA required.

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    I know you can create a form and have it insert the record into the table but it won't work for this purpose.
    You know this how? I cannot see why, especially when you already have a form that you start this process with.
    it fetches the data (SKU number, location, description, pack size etc) from a linked table
    This data is read only? Then yes, you would need a local table but typically you would not repeat all the data. Local would have the primary key value from the linked and you would ony add the fields that are not already in the linked table - such as scan date. The process that handles the label print could also write to the local table.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    rplum is offline Novice
    Windows 8 Access 2013 32bit
    Join Date
    Apr 2016
    Posts
    10
    Ugh, was hoping to be able to do it internally in the database and not to have to go down the VBA road as I don't know the coding. Thanks for the reply.

  5. #5
    rplum is offline Novice
    Windows 8 Access 2013 32bit
    Join Date
    Apr 2016
    Posts
    10
    I have built forms previously that allow user input and it writes the inputted data into a local table.

    Yes the data is read only. The process that handles the print is a macro.


    Click image for larger version. 

Name:	Untitled.png 
Views:	8 
Size:	12.0 KB 
ID:	38977
    When I click the button in the database this is the input box that pops up. We scan the barcode then the label prints.

    Click image for larger version. 

Name:	report.png 
Views:	8 
Size:	16.7 KB 
ID:	38978

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

Similar Threads

  1. Replies: 2
    Last Post: 12-06-2013, 05:19 PM
  2. Using Like to prompt input of multiple values
    By eskybel in forum Queries
    Replies: 6
    Last Post: 01-16-2013, 03:45 PM
  3. Replies: 0
    Last Post: 03-03-2012, 03:43 PM
  4. Replies: 5
    Last Post: 05-17-2011, 11:02 AM
  5. Table Values As Query Input?
    By joolio in forum Access
    Replies: 2
    Last Post: 01-05-2010, 07:32 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