Results 1 to 5 of 5
  1. #1
    95DSM is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    37

    Form Using Data Entry Both Ways


    Ok, so I have 2 forms. One is an "Add" form and a "Update" form. The Add form has multiple combo-boxes and a few text entries fields. For its purpose, the form has Data Entry turned on. The Add form works perfectly. My Update from on the other hand has a problem. I have Data entry turned off. When the form opens it shows the first item in my inventory and allows for updates with the combo boxes. But if I change a text box it directly changes that field in the main table. I would like it to create a new entry to the table and save for that particular entry. Is there a way to accomplish this? If it requires code can you please provide me a small example?

    Any suggestions would be greatly appreciated.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    What you're describing is not an update, an update is when you want to change the data on an existing record, you're talking about generating a new record for every change you make, which should be done on a secondary table that tracks your changes.

    For instance if you have 10000 items and you want to track how many items are taken by date you would not do that on the main table you would create a secondary table that had the itemID, the amount taken and the date it was taken and sum those for comparison to your total rather than modifying your total.

  3. #3
    95DSM is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2010
    Posts
    37
    See thats what I dont want to do. I dont want to generate an entirely new Entry just because I changed one field. I would like to keep the same entry and modify the field without changing that same field in my other entires.

    For instance.... I have a hardware DB. It contains model number, mfg, serial #, etc.

    If I pull up item 245, which is manufactued by Dell, and I want to change the POC for this particualr item, I want to be able to overwirte John Smith and type Mike Brown. But I dont want it to do this for all records that have John Smith. Only this particular one.

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Do you have a primary key for each computer? A value that is not duplicated and can not be duplicated for any other computer within your system? If so you can perform an update query based on that primary key and it will only affect the computer that has that primary key.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    What is the table structure? Do you have a table of contacts? Does the hardware table have a field that is linked to the contacts table by saving the contactID? What is the relationship of these tables? Is this form's RecordSource a query joining these two tables? Sounds like you are changing the name in contacts record.
    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. Creating form for data entry
    By salisbut in forum Forms
    Replies: 5
    Last Post: 03-31-2011, 12:22 PM
  2. Form for Data Entry
    By cherkey in forum Forms
    Replies: 4
    Last Post: 02-15-2011, 02:40 PM
  3. Ways of preparing data for graphs
    By ajetrumpet in forum Queries
    Replies: 0
    Last Post: 09-11-2010, 10:26 PM
  4. Data entry form
    By adept in forum Forms
    Replies: 1
    Last Post: 08-20-2010, 10:13 PM
  5. Sub Form Data Entry
    By OldBloke in forum Forms
    Replies: 1
    Last Post: 08-09-2010, 06:58 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