Results 1 to 4 of 4
  1. #1
    baijuep is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2015
    Posts
    2

    Fetch data from table and display inform and insert to another table

    Sir, i am new in MS Access i had worked in asp.net. but now i want some help in access.


    I have a small access database in which i have a form there is a barcode field when barcode is fired to that barcode field a query should run to fetch the data of that particular person from table named MAIN and display in the fields in the form and the entire data to be inserted into another table naned enterkot.
    My table structure is as under


    MAIN (Table)


    id autonumber
    No text
    tank text
    Name_ text
    Barcode text


    ENTERKOT (table)


    id autonumber
    mid number
    No text
    Tank text
    Name_ text
    Barcode text
    Date_ datetime

    When i open my form name enterkot there are all fields to enter data.
    1. When i click my barcode and the barcode is entered into barcode field.
    2. On text change the data should pickup from table main and display in form
    3. In form there is a field named date the date should be the computer date
    4. After displying the data in form it should automatically stored in table ENTERKOT


    please guide me i am new in access

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    Why do you want to save this data into another table - that looks like duplicating data.

    Appears you need a better understanding of relational database principles and could benefit from working through a tutorial. Try this one http://www.rogersaccesslibrary.com/

    Date is a reserved word. Should not use reserved words as names.
    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
    baijuep is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2015
    Posts
    2
    Quote Originally Posted by June7 View Post
    Why do you want to save this data into another table - that looks like duplicating data.

    Appears you need a better understanding of relational database principles and could benefit from working through a tutorial. Try this one http://www.rogersaccesslibrary.com/

    Date is a reserved word. Should not use reserved words as names.
    I don't want to duplicate the data . I want the id and barcode to be stored in another table so that i can check howmany times did a person visit that room.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,900
    Then what did you mean by 'entire data'?

    Don't need both ID and barcode saved.
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-12-2015, 02:02 PM
  2. Replies: 5
    Last Post: 12-01-2014, 11:31 AM
  3. Using DLOOKUP to fetch data from table
    By rd.prasanna in forum Access
    Replies: 4
    Last Post: 10-29-2013, 11:23 AM
  4. Replies: 25
    Last Post: 01-29-2013, 08:49 AM
  5. Replies: 1
    Last Post: 12-28-2010, 11:24 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