Results 1 to 4 of 4
  1. #1
    Wooden_Shoes is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Location
    Illinois
    Posts
    8

    How to Change Field with a Combo Box Twice


    Hello,

    I am trying to change two fields with the same form using a combo box. When I change the record (serial number) in the field using a combo box, it automatically updates the records in the other fields (which is what I want), but it also changes the field (serial number - installed) and it's associated records/fields, which i do not want it to do. I would like to be able to change these records separately on one form and then click my 'save' button and move on to my next change out. I have included a picture to show what I want my form to look like. Is this where a sub form would be used???

    Any help would be greatly appreciated.

    Click image for larger version. 

Name:	accessform.PNG 
Views:	12 
Size:	23.1 KB 
ID:	9115

    Thanks,

    Greg

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Looks to me like you have two sets of controls bound to the same fields. This means they are displaying the same record. So any edit on either side is editing the same record.

    You want to change the status of substation from installed to removed or vice versa? You could just change a status field. However, if you want a history of these changes then yes, will need a dependent child table to document these transactions.
    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
    Wooden_Shoes is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Location
    Illinois
    Posts
    8
    Quote Originally Posted by June7 View Post
    Looks to me like you have two sets of controls bound to the same fields. This means they are displaying the same record. So any edit on either side is editing the same record.

    You want to change the status of substation from installed to removed or vice versa? You could just change a status field. However, if you want a history of these changes then yes, will need a dependent child table to document these transactions.
    Yes I want to be able to choose a device based upon the its Serial Number, then update its Substation, Location, Date Installed, etc....I want to do this for two records at a time since we will be replacing one device with the other. All of these records are in one table. You can ignore the "Installed" and "Removed" headings, i forgot to take those off.

    Thanks,

    Greg

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    You must edit one record then find the other record and edit it.

    The two sets of controls on one form will not accomplish this.

    A combobox used to input search criteria must be unbound (no ControlSource). Review http://datapigtechnologies.com/flash...tomfilter.html
    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: 3
    Last Post: 07-20-2012, 11:41 AM
  2. Change Text field to Memo Field in a Query
    By Yarbz in forum Queries
    Replies: 5
    Last Post: 06-28-2012, 05:24 PM
  3. Combo box change
    By nawaray in forum Programming
    Replies: 4
    Last Post: 01-17-2011, 04:04 AM
  4. Change to selection in combo box
    By corystemp in forum Access
    Replies: 7
    Last Post: 06-28-2010, 10:20 AM
  5. Using VB to change the value in a combo box
    By Noobie in forum Programming
    Replies: 7
    Last Post: 03-18-2010, 10:07 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