Results 1 to 4 of 4
  1. #1
    Join Date
    May 2013
    Location
    Baltimore Maryland
    Posts
    15

    Displaying results of query in form text boxs

    OK so here's this situation: I have a Inventory DB and i want to integrate scanning. So far i have a table called StockInfo, this table holds information about bar codes (device type, make, model). I have a form called Scan_Barcode, on this form I want to be able to scan a bar code into a text box (text0) and use a afterupdate and requery function (I think... need some help) to display the results onto a form called EnterInventory. Not only just the results but I want certain columns from the query to display in certain text boxes on this form. I have a query called FindProduct. that filters the criteria by whats entered on the Scan_Barcode text box (text0). So when i scan a certain bar code i can get the query to display certain product information for the bar code. I just cant get the results onto the HarwareStock form. PLEASE HELP!! I will be happy to clarify if this is confusing.



    Click image for larger version. 

Name:	Scan Barcode.jpg 
Views:	11 
Size:	95.3 KB 
ID:	21573 Search barcode Form

    Click image for larger version. 

Name:	Find Product Query.jpg 
Views:	11 
Size:	118.4 KB 
ID:	21574 Find Product Query

    Click image for larger version. 

Name:	Hardware Stock Table.jpg 
Views:	11 
Size:	124.0 KB 
ID:	21575 Hardware Stock Table

    Click image for larger version. 

Name:	Enter Inventory Form.jpg 
Views:	11 
Size:	98.6 KB 
ID:	21577 Enter Inventory Form

    Click image for larger version. 

Name:	Stock Info Table.jpg 
Views:	11 
Size:	131.5 KB 
ID:	21576 Stock info table
    Last edited by mgillespie21234; 08-07-2015 at 02:47 PM. Reason: wrong pic

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Options:

    1. dynamic parameterized query that references the barcode textbox as input - I never use this method

    2. I prefer http://www.allenbrowne.com/ser-62.html

    What are the PK/FK fields on these tables - how are they related? It doesn't matter what kind of input device you use (keyboard, mouse, scanner) if the tables have no relationship.

    Is StockInfo a 'lookup' table for product info? Need to save either barcode or StockInfo ID into HardwareStock. Should not have Device, Make, Model fields in both tables.
    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.

  3. #3
    Join Date
    May 2013
    Location
    Baltimore Maryland
    Posts
    15
    Yeah your right I was just reading about pk and fk and have thr general idea. I will make some changes and post new pics Monday... Thank you June!

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    If you really do not know what a PK or FK is or their significance, the work through this tutorial. You will learn about database tables and relationships by working through a process that can be used with any database. You have to work through it, but you will learn.

    Normalization

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

Similar Threads

  1. Replies: 10
    Last Post: 06-03-2015, 10:45 AM
  2. Replies: 3
    Last Post: 07-21-2014, 04:02 PM
  3. Replies: 1
    Last Post: 10-01-2012, 12:31 PM
  4. Displaying query results in form
    By celito in forum Access
    Replies: 2
    Last Post: 08-27-2011, 09:14 AM
  5. Displaying query results within a form
    By Remster in forum Forms
    Replies: 5
    Last Post: 10-05-2010, 09:56 PM

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